]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/tests/paul.py
   1 from wxPython
.wx 
import * 
   4 class MyFrame(wxFrame
): 
   5     def __init__(self
, parent
, id, title
='A pxFrame!'): 
   6         wxFrame
.__init
__(self
, parent
, id, title
, 
   7             wxPyDefaultPosition
, wxSize(50, 50)) 
   9     def get_filename(self
): 
  10         dlg 
= wxFileDialog(self
, "Choose a file", ".", "", "*.*", wxOPEN
) 
  12         self
.file = dlg
.GetPath() 
  18 class FilePicker(wxApp
): 
  22     def get_filename(self
): 
  23         dlg 
= wxFileDialog(NULL
, "Choose a file", ".", "", "*.*", wxOPEN
) 
  25         self
.file = dlg
.GetPath()