]> git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-09/file_box.py
pixbuf cursor support is for GTK 2.4.
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-09 / file_box.py
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