Hi All,
Can we make a dialog (either dirDialog or fileDialog) select both files & directory…
cheers
···
Thomas Thomas
phone +64 7 855 8478
fax +64 7 855 8871
Hi All,
Can we make a dialog (either dirDialog or fileDialog) select both files & directory…
cheers
Thomas Thomas
phone +64 7 855 8478
fax +64 7 855 8871
Hey, after reading this group for ages, I think I know the answer to this one. Allow me to give it a shot!
I use a wx.FileDialog.GetFilename(s) to select a file(s). But wx.FileDialog.GetPath(s) also returns the full path (dir & filename). Just strip the dir fron the full path with with os.path.dirname(full_path)
It helped me heaps to install the wxpython demo, which includes the API reference. Now I can often find out what I want about a widget pretty quickly. Doesn’t generally matter that the API reference is largely written for C++.
bwaha
-----Original Message-----
From: Thomas Thomas [mailto:thomas@eforms.co.nz]
Sent: Wednesday, 10 May 2006 8:52 AM
To: wxpython-users@lists.wxwidgets.org
Subject:
[wxPython-users] dialog to select both file and directory
Hi All,
Can we make a dialog (either dirDialog or fileDialog) select both files & directory…
cheers
Thomas Thomas
phone +64 7 855 8478
fax +64 7 855 8871