[pygtk] Win32 file chooser
John Pye
john.pye at student.unsw.edu.au
Mon Mar 6 09:27:19 WST 2006
Hi all,
Has anyone had any success getting the following example from the FAQ to
run?
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq21.013.htp
For me, running with Python 2.4 on Win2k, it doesn't work:
> Exception in thread Thread-12:
> Traceback (most recent call last):
> File "C:\Python24\lib\threading.py", line 442, in __bootstrap
> self.run()
> File "C:\Python24\lib\threading.py", line 422, in run
> self.__target(*self.__args, **self.__kwargs)
> File "examplewinfile.py", line 12, in run_dialog
> s = winfilechooser._test("This is a dialog", "C:\\WINDOWS")
> File "g:\ascend\pygtk\interface\winfilechooser.py", line 132, in _test
> if win32gui.GetOpenFileName(cs1.data):
> TypeError: Argument must be a 88-byte string
Any suggestions?
Cheers
JP
--
John Pye
School of Mechanical and Manufacturing Engineering
The University of New South Wales
Sydney NSW 2052 Australia
t +61 2 9385 5127
f +61 2 9663 1222
mailto:john.pye_AT_student_DOT_unsw.edu.au
http://pye.dyndns.org/
More information about the pygtk
mailing list