| 1 | import wx |
| 2 | import wx.lib.imagebrowser as imagebrowser |
| 3 | |
| 4 | if __name__ == "__main__": |
| 5 | app = wx.PySimpleApp() |
| 6 | dialog = imagebrowser.ImageDialog(None) |
| 7 | if dialog.ShowModal() == wx.ID_OK: |
| 8 | print "You Selected File: " + dialog.GetFile() |
| 9 | dialog.Destroy() |
| 10 | |
| 11 | |