[python-nl] Classes in andere modules
Math
mathweijzen at home.nl
Thu Feb 2 23:00:55 CET 2006
Frank, bedankt
Da's tot nu toe de enige oplossing waar ik iets mee kan...en wat werkt
Gr Math
> 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 op python.org
> http://mail.python.org/mailman/listinfo/python-nl
More information about the Python-nl
mailing list