RE: [Boa Constr] 2 problems-- wxMenu and python crashing
Status: Beta
Brought to you by:
riaan
From: John B. <joh...@om...> - 2002-07-05 22:34:07
|
Thanks Riaan. I did go to the web site and made the suggsted change in the UtilCompanions.py file. Now I can add a menu. It works great. I did try your suggestion on the initialization lines for the canvas. I had to change them a bit to get it to work [see below...wxFrame1 (which is self) did not have an attribute "diagram"]. Im not sure if I can draw yet, but the application does execute at least. No errors. The problem is though that by adding the new code into the init section, Boa no longer will allow me to use the Frame Designer. It tells me there are "too many sections". Is there a way around this? It kind of defeats the purpose if I can't use the graphical layout abilities of Boa. self.scrolledWindow1.diagram = wxDiagram() self.scrolledWindow1.diagram.SetCanvas(self.scrolledWindow1) self.scrolledWindow1.SetDiagram(self.scrolledWindow1.diagram) I had to place the above code below where scrolledWindow1 was initialized, I see, or else it didnt know what scrolledWindow1 was. If I wanted to fix the crash on exit problem I could upgrade to the new CVS version, but Im not sure how to do that. I went to the CVS site and I see I can download several different modules, but which ones do I want and how do I install them in Windows? Do I just copy them over the old folders? I could also downgrade to Python 2.1, but Im wondering if I would have to uninstall 2.2 and wxWindows and Boa etc, since they are all in the same Python22 directory. Again, pardon my lack of experience...with a little help I will learn fast. Best, John |