]>
Commit | Line | Data |
---|---|---|
be05b434 RD |
1 | import wx |
2 | import os | |
3 | ||
4 | if __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 |