[Boa Constr] 2 problems-- wxMenu and python crashing
Status: Beta
Brought to you by:
riaan
From: John B. <joh...@om...> - 2002-07-05 02:05:06
|
Hi: I just downladed and installed the latest version of Python, Boa and related files, and I am having a couple of problems that were mentioned perviously in the sourceforge open discussion. I run Windows XP, by the way. The first problem is with adding menu items and it also occurs when adding wxImageLists. It is the problem Steve has written about below: ------------------------------------------------------ By: holdenweb ( Steve Holden ) Menu items cannot be added/edited 2002-04-22 15:38 When I try to add a Menu widget to the Data tab of a wxFrame I see the following error traceback: TypeError: unbound method properties() must be called with CollectionDTC instanc e as first argument (got MenuDTC instance instead) ....[and so on] [the reply by Keven:] By: kevin_gill ( Kevin Gill ) RE: Menu items cannot be added/edited 2002-04-23 02:50 I had these problems when I installed beta1. It appears that there was global changes to some objects to differenciate between design time and run time versions, and some lines got left out. I include them below. Companions/Companions.py line 1131, changed ContainerDTC to Window DTC def persistProp(self, name, setterName, value): if setterName == 'SetImageList': imgList, listType = string.split(value, ',') imgList, listType = string.strip(imgList), string.strip(listType) for prop in self.textPropList: if prop.prop_setter == setterName and prop.params[1] == listType: prop.params = [imgList, listType] return self.textPropList.append(methodparse.PropertyParse( None, self.name, setterName, [imgList, listType], 'SetImageList')) else: #ContainerDTC.persistProp(self, name, setterName, value) WindowDTC.persistProp(self, name, setterName, value) #KG #### Companions/UtilCompanions.py line 220 def properties(self): props = UtilityDTC.properties(self) ### KG ### props.update({'Items': ('NoneRoute', None, None)}) return props ------------------------------------------------------- I do not understand if I too should change these lines of code (maybe it was updated since April). In fact the line numbers Kevin refers to do not seem to be the ones in the code. Anyway, I do not understand what pieces are to be changed and what are to be left alone. Could anyone give some newbie-friendly advice on this? Here is my second problem. It is one that notnameless had as shown below: ------------------------------------------ By: notnameless ( See login name. ) Hmmmm... 2002-05-08 19:57 Whenever I close Boa I get the following error: Python has caused an error in WSMXSW232.DLL. Python will now close. I know this is a wxWindows, or wxPython error and wonder if there is a way to get rid of the error. I am running Win ME. ------------------------------------------ Actually, I do not get the exact message, but Python crashes every time I exit Boa unless I exit it by shutting down the DOS command window. Any suggestions as to how to fix this? John Boik Oregon Medical Press www.ompress.com joh...@om... |