Math schreef: > > class clsMDIChildFrame(wx.MDIChildFrame): > * def __close(self, event): > # clear MDIchildFrame atttribute from parent.....and close > module1.MainApp.MDIParentFrame.MDIChildFrame = None* > ** > * self.Destroy()
In aanvulling op de discussie over circulaire imports een wxPython specifieke suggestie: ik denk dat je module1.MainApp.MDI... kunt vervangen door wx.GetApp().MDIParentFrame... Dan hoef je module 1 helemaal niet te importeren en kun je toch bij je MainApp komen. Groet, Frank _______________________________________________ Python-nl mailing list Python-nl@python.org http://mail.python.org/mailman/listinfo/python-nl