[Tutor] how to call "~wxDialog()" in python?
Thomas CLive Richards
thomi@thomi.imail.net.nz
Tue Jul 22 03:34:00 2003
Hey,
when trying to destroy a (WxWindows) window, I have to call a function
called "self.~wxDialog()" However, python complains about the '~'
character:
thomi@Julie:~/work/python sources/wxPython$ ./wedderburn.py
File "./wedderburn.py", line 146
EVT_BUTTON(self,ID_PREFS_CLOSEBUTTON,self.~wxDialog)
^
SyntaxError: invalid syntax
I tried escaping it with a '\' character, like you can do in some other
languages, but that didn't seem to work either. I also thought that
maybe the python wrapper to the wxWindows library had changed thename of
this function, but i couldn't see any mention of it in the latest
documentation.
ummm... "HELP!"...
I'm kinda stuck now..... *hides under desk*
thanks,
--
Thomi Richards,
thomi@thomi.imail.net.nz