From: Cullen N. <cn...@sa...> - 2006-10-05 18:32:15
|
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 -- |Cullen Newsom SUS Optics| |10905 Cash Road Stafford, Texas 77477| |cn...@sa... tel: 281.276.3737| |