be05b43451
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
18 lines
401 B
Python
18 lines
401 B
Python
import wx
|
|
import os
|
|
|
|
if __name__ == "__main__":
|
|
app = wx.PySimpleApp()
|
|
wildcard = "Python source (*.py)|*.py|" \
|
|
"Compiled Python (*.pyc)|*.pyc|" \
|
|
"All files (*.*)|*.*"
|
|
dialog = wx.FileDialog(None, "Choose a file", os.getcwd(),
|
|
"", wildcard, wx.OPEN)
|
|
if dialog.ShowModal() == wx.ID_OK:
|
|
print dialog.GetPath()
|
|
|
|
dialog.Destroy()
|
|
|
|
|
|
|