Re: [PyQt] spreadsheet example
Am Monday 20 February 2012 19:30:06 schrieb Phil Thompson: > On Mon, 20 Feb 2012 18:20:32 +0100, "Hans-Peter Jansen" > > wrote: > > Am Sunday 19 February 2012 12:47:28 schrieb Phil Thompson: > >> On Sat, 11 Feb 2012 01:36:14 +0100, "Hans-Peter Jansen" > >> > >> > >> wrote: > >> > Hi Phil, > >> > > >> > while I'm seriously overloaded at the moment (a bunch of people are > >> > much > >> > > >> > harder to organize then code), I did some relaxations by converting > >> > another fine Qt example. As usual, I couldn't resist in pimping it > >> > up in some minor ways. Most prominently, I added a way to change > >> > the date format globally. Also, a workaround to fetch the correct > >> > cell background color is applied. > >> > >> I removed the workaround as (for me) it doesn't seem to be needed and > >> also it breaks the background of the first and last rows. > > > > Not here. Does the background color dialog show the correct color for > > you in all fields? Here, it's showing black by default, while I use > > some very different background color. > > It shows black for white fields, and the correct colour for others. This > is the same as the C++ version - this is on a Mac. I was more concerned > about the incorrect first and last rows. Yes, the C++ version suffers from the same problem. The idea was: only the initial background color was wrong (all zero), but after setting some valid color, the cell background color behaved well. Since it fails for you, and this is just an example, keeping it bug compatible is preferable. A real application would initialize such properties explicitely via proper interfaces. Have a nice day, Pete ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] spreadsheet example
On Mon, 20 Feb 2012 18:20:32 +0100, "Hans-Peter Jansen" wrote: > Am Sunday 19 February 2012 12:47:28 schrieb Phil Thompson: >> On Sat, 11 Feb 2012 01:36:14 +0100, "Hans-Peter Jansen" >> >> >> wrote: >> > Hi Phil, >> > >> > while I'm seriously overloaded at the moment (a bunch of people are >> > much >> > >> > harder to organize then code), I did some relaxations by converting >> > another fine Qt example. As usual, I couldn't resist in pimping it >> > up in some minor ways. Most prominently, I added a way to change >> > the date format globally. Also, a workaround to fetch the correct >> > cell background color is applied. >> >> I removed the workaround as (for me) it doesn't seem to be needed and >> also it breaks the background of the first and last rows. > > Not here. Does the background color dialog show the correct color for > you in all fields? Here, it's showing black by default, while I use > some very different background color. It shows black for white fields, and the correct colour for others. This is the same as the C++ version - this is on a Mac. I was more concerned about the incorrect first and last rows. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] spreadsheet example
Am Sunday 19 February 2012 12:47:28 schrieb Phil Thompson: > On Sat, 11 Feb 2012 01:36:14 +0100, "Hans-Peter Jansen" > > > wrote: > > Hi Phil, > > > > while I'm seriously overloaded at the moment (a bunch of people are > > much > > > > harder to organize then code), I did some relaxations by converting > > another fine Qt example. As usual, I couldn't resist in pimping it > > up in some minor ways. Most prominently, I added a way to change > > the date format globally. Also, a workaround to fetch the correct > > cell background color is applied. > > I removed the workaround as (for me) it doesn't seem to be needed and > also it breaks the background of the first and last rows. Not here. Does the background color dialog show the correct color for you in all fields? Here, it's showing black by default, while I use some very different background color. > > One thing escaped me, though: the SpreadSheetItem.clone() method. > > It is finalized with an instance pointer assignment in C++. I've > > experimented with the baseclass clone call, which resulted in a > > strange: item = super(SpreadSheetItem, self).clone() > > RuntimeError: underlying C/C++ object has been deleted > > but since this doesn't seem to be intented in the original version, > > feel > > > > free to ignore this. > > I used super().clone() but I'm not sure if the code was ever executed > in my testing. What operation were you doing when it happened? I called it manually to investigate it further, while I noticed, that it never got called in normal operation. > > Anyway, this example shows the powers of Qt in some nice ways. > > Hopefully > > > > you can include it in the upcoming release. Pete ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] spreadsheet example
On Sat, 11 Feb 2012 01:36:14 +0100, "Hans-Peter Jansen" wrote: > Hi Phil, > > while I'm seriously overloaded at the moment (a bunch of people are much > harder to organize then code), I did some relaxations by converting > another fine Qt example. As usual, I couldn't resist in pimping it up > in some minor ways. Most prominently, I added a way to change the date > format globally. Also, a workaround to fetch the correct cell > background color is applied. I removed the workaround as (for me) it doesn't seem to be needed and also it breaks the background of the first and last rows. > One thing escaped me, though: the SpreadSheetItem.clone() method. It is > finalized with an instance pointer assignment in C++. I've experimented > with the baseclass clone call, which resulted in a strange: > item = super(SpreadSheetItem, self).clone() > RuntimeError: underlying C/C++ object has been deleted > but since this doesn't seem to be intented in the original version, feel > free to ignore this. I used super().clone() but I'm not sure if the code was ever executed in my testing. What operation were you doing when it happened? > Anyway, this example shows the powers of Qt in some nice ways. Hopefully > you can include it in the upcoming release. Thanks, Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] spreadsheet example
Hi Phil, while I'm seriously overloaded at the moment (a bunch of people are much harder to organize then code), I did some relaxations by converting another fine Qt example. As usual, I couldn't resist in pimping it up in some minor ways. Most prominently, I added a way to change the date format globally. Also, a workaround to fetch the correct cell background color is applied. One thing escaped me, though: the SpreadSheetItem.clone() method. It is finalized with an instance pointer assignment in C++. I've experimented with the baseclass clone call, which resulted in a strange: item = super(SpreadSheetItem, self).clone() RuntimeError: underlying C/C++ object has been deleted but since this doesn't seem to be intented in the original version, feel free to ignore this. Anyway, this example shows the powers of Qt in some nice ways. Hopefully you can include it in the upcoming release. Pete python: 2.6.2 sip: 4.13.1 qt4: 4.7.1 pyqt4: 4.9 spreadsheet-20120211-003540.tar.bz2 Description: application/tbz ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt