wxFileDialog

dlg = wxFileDialog(self, "Choose a file","/home/kemu", "", "*.*", wxOPEN)
          if dlg.ShowModal() == wxID_OK:
           self.filename=dlg.GetFilename()
           self.dirname=dlg.GetDirectory()
             f=open(os.path.join(self.dirname, self.filename),'r')
              self.control.SetValue(f.read())
               f.close()
         dlg.Destroy()

don't get anything about this code
think there should be much more info about wxPython cause now it's really sloppy