[EMAIL PROTECTED] wrote: > How do I transfer the file name which is input in one .py (an MDI > parent frame in wxPython) to another .py (an MDI child frame)? The > parent gets the file name from the user via a file select dialog, but > the child frame is the one that needs to know what file it is working > with. > > Thanks > Normally I do something like:
class childFrame: def __init__(self, parent, *args): self.parent=parent # # Now you can refer to the filename by accessing # self.parent.filenamefromdialog class main: def getfilefromdialog(self): self.filenamefromdialog=... -Larry -- http://mail.python.org/mailman/listinfo/python-list