]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/samples/wxPIA_book/Chapter-09/file_box.py
fix building/running of tex2rtf
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-09 / file_box.py
... / ...
CommitLineData
1import wx
2import os
3
4if __name__ == "__main__":
5 app = wx.PySimpleApp()
6 wildcard = "Python source (*.py)|*.py|" \
7 "Compiled Python (*.pyc)|*.pyc|" \
8 "All files (*.*)|*.*"
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()
13
14 dialog.Destroy()
15
16
17