From: Kevin A. <al...@se...> - 2004-04-05 22:34:46
|
I'm not going to put out a 0.7.3.1 release for a bug in one of the=20 samples, so I'm just going to document the problem and fix here for=20 anyone that cares. The bug is already fixed in cvs. If you're running a version of wxPython prior to 2.5.x then line 99=20 won't work: oldSize =3D self.size that should be oldSize =3D self.getSize() =00 =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> ka= |