From: Kevin A. <al...@se...> - 2004-04-07 22:38:09
|
On Apr 5, 2004, at 3:34 PM, Kevin Altis wrote: > > =00In addition, Rowland Smith has found that on Linux with wxPython=20 > 2.4.2.4 the size event is not firing before the idle event. That's=20 > actually a wxPython bug as far as I'm concerned (Windows and Mac OS X=20= > don't have this problem), but I don't know yet whether this bug exists=20= > in wxPython 2.5.1.5 on Linux. The fix is to add > > self.resizing =3D 0 > > to the beginning of the on_openBackground handler. > > Since nobody on Linux has ever reported this problem before I'll just=20= > assume that people running Linux never tried the sample or had low=20 > expectations <wink> > This has turned out to be a deeper problem than I expected. Due to the=20= way initialization is done on GTK, the event message order with=20 PythonCard is different depending on whether you use the runtime tools=20= or not when you start a sample or tool. What ends up happening is=20 'size' and 'idle' messages are sent before openBackground which defeats=20= the whole purpose of openBackground as an initialization method. I spent all of yesterday investigating this with Rowland and we have=20 some tests so that now I think we understand what is going on and might=20= have a different way of doing openBackground. We also found that on all platforms we are seeing a gainFocus message=20 for the first item on a Background, so that is a long-standing bug, but=20= probably not critical because it isn't used much or at least not in a=20 case where it relies on prior initialization. The problem with=20 openBackground on GTK is more serious, so I hope to figure something=20 out for 0.7.3.1. ka |