[Boa Constr] Bug in menus with Boa v. 0.1.0 with Python 2.2 and wxWindows 2.3.2 on Windows
Status: Beta
Brought to you by:
riaan
From: Phillip D. <ph...@so...> - 2002-03-06 05:15:37
|
I just found this list when I was looking for somewhere to send this bug. The rest of sourceforge is down, but the mail lists are apparently still up. I apologize if I'm reporting a known bug here, but since I have no way to access the archives, here goes. When I tried to add a menu to a new project, I received an error (passing a MenuDTC item where a CollectionDTC item was expected). I was able to trace it down to the file Companions/UtilCompanions.py. It appears that the class MenuDTC should inherit from CollectionDTC as it attempts to invoke methods from that class. It currently inherits from MenuConstr and UtilityDTC, but not from CollectionDTC. I tried three things before I hit on what seemed like the correct solution. First, I tried making UtilityDTC inherit from CollectionDTC. I had to move it physically in its file, and I just wasn't satisfied that this was a good solution. So I tried changing MenuDTC to inherit from CollectionDTC instead of from UtilityDTC. However, I was then missing the methods defined in UtilityDTC. So I made the attempt to inherit from both UtilityDTC and CollectionDTC. When I added CollectionDTC to the end of the list of classes it inherits from, suddenly the error messages I had been receiving when attempting to add menus went away, and the menus had an item property that could be set to a collection. This works the same way as my Python 2.1/Linux version already worked. I figured I would try out the latest CVS snapshot to compare against 0.1.0, but discovered that the CVS on SourceForge appears to predate the 0.1.0 release. Is this the appropriate place to report such bugs? Was this one already known? In any event, I'm really enjoying using python, wxPython, wxWindows, and Boa-Constructor. For me, all of this is fairly new, but it really looks powerful and useful. Thanks. Phillip |