From: Kevin A. <al...@se...> - 2004-09-04 04:01:00
|
On Sep 3, 2004, at 8:24 PM, Gregory Pi=F1ero wrote: > Thanks for the advice, Alex, the simplegrid program is very helpful. > > There may be a bug in the simplegrid program, is it better to report =20= > it here, or somehow get a sourceforge login deal and go that route? > > The bug is in the file: > C:\Python23\Lib\site-=20 > packages\PythonCard\samples\simpleGrid\simpleGrid.py > > The program does not work properly unless I do a global replace of =20 > event.skip() to event.Skip(). Just lower case s to upper case. I'm =20= > not sure why that would be? > Good catch. I did a global replace on most of the files when I changed =20= to mixedCase style PythonCard method names. In general, event.skip() is =20= used everywhere for consistency, even though event.Skip() is still =20 valid since PythonCard is simply "decorating" the raw wxPython events =20= with some helper attributes and providing method aliases. But in the case of that sample, the events are bound manually and don't =20= use the PythonCard event binding and dispatch, so the manually bound =20 events aren't decorated and the skip alias is missing. I went ahead =20 fixed the problem and checked the change into cvs. Now that components are much simpler to create I plan to update the =20 Grid component so that all the events are bound just like the =20 MultiColumnList and Tree components. I'll update the sample and notify =20= the list when that is done. For now, you can continue to do things like =20= the sample. ka= |