]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-09/file_box.py
4 if __name__
== "__main__":
6 wildcard
= "Python source (*.py)|*.py|" \
7 "Compiled Python (*.pyc)|*.pyc|" \
9 dialog
= wx
.FileDialog(None, "Choose a file", os
.getcwd(),
10 "", wildcard
, wx
.OPEN
)
11 if dialog
.ShowModal() == wx
.ID_OK
:
12 print dialog
.GetPath()