[Boa Constr] ...at the risk of asking TOO many questions...
Status: Beta
Brought to you by:
riaan
From: John B. <joh...@om...> - 2002-07-05 20:05:18
|
Hi. I hope I am not using up all my good graces by asking too many questions here (any suggestions on etiquite would be appreciated). But I have one commont and one more question. The comment is on my last post about Python crashing after I click a mouse event in my created wxShapeCanvas. Actually, it doesnt even need to be a mouse event--even with all events removed, Python crashes whenever I click anywhere in the canvas. Second...and this is real simple...I am a real newbie...how do I make a panel active without the mouse? I would like to instruct my program to draw a line on the canvas (named "scrolledWindow1"), but I cant figure out how to make the following lines work: self.scrolledWindow1.diagram=wxDiagram() self.SetDiagram(self.diagram) self.diagram.SetCanvas(self) ... I got these and several related lines from the wxOGL demo. But when I run it Boa tells me that self is not defined. Omitting the "self." part or changing it to "wxFrame1." (the parent, I assume) does not work either. How do you instruct wxWindows to do something on a desired frame or panel without using mouse events? I thought that since I cannot click on the canvas without Python crashing, maybe I could hard wire in some code to draw a test line. Cheers, John John Boik Oregon Medical Press www.ompress.com joh...@om... |