From: Liam C. <cy...@gm...> - 2006-10-06 06:49:22
|
Can you post all of you code please? www.rafb.net/paste Cullen Newsom wrote: > So I have taken testNotebook.py and added some stuff. in one of the > child windows, I have: > def on_initialize(self, event): > self.parent=self.getParent() > > as mentioned in > Python24/Lib/site-packages/PythonCard/docs/html/walkthrough3.html > this is what I get: > File > "C:\Python24\Lib\site-packages\InstrumentThing\testNotebook\CameraLinkTerminal.py", > line 41, in on_initialize > self.parent=self.getParent() > AttributeError: 'CameraLinkTerminal' object has no attribute 'getParent' > > I also tried: > self.parent=self.wx.Frame.GetParent() > and got: > AttributeError: 'CameraLinkTerminal' object has no attribute 'wx' > > I just need to get some variables from the parent, or if nothing else > read the pages name. > > Thanks, > Cullen > > |