[wxPython-users] Old bug appears in new XRCed & pyXRC
甜瓜
littlesweetmelon at gmail.com
Fri Dec 7 20:51:04 PST 2007
Hi,
New XRCed (google code) in wxPython 2.8.7.1 has bugs in dealing
with wx.Menu.
How to repeat the bug:
1. Create a Menu and insert some MenuItem.
2. Give a name to a MenuItem, and check "assign variable"
3. Auto generate python code.
4. Create a instance of the Menu... (crash for None object has no attr
"FindItemById")
The generated code is:
eg: self.IDM_EXIT = self.GetMenuBar().FindItemById(xrc.XRCID("IDM_EXIT"))
It should be:
self.IDM_EXIT = self.FindItemById(xrc.XRCID("IDM_EXIT"))
Actually, I have submit a bugfix in previous wxPython release for this
problem. But now, it appears again. hehe
In addition, new XRCed lose all properties of items when "Make
sibling" or "Make child" operation...unstable behavior when doing tree
item selection... If I have time, I will try to fix them all.
p.s. Is there any wxEvent corresponding to WM_DEVICECHANGE? I'm
writing a wx program to handle USB devices. I have to know if a new
device is plugged in or out.
Thank you!
---
ShenLei
More information about the wxpython-users
mailing list