def _open_set ( self ):
     """ Handles the user clicking the 'Open...' button.
     """
     file_name = open_file( extensions = TextInfo(),
                            filter     = 'Python file (*.py)|*.py',
                            id         = demo_id )
     if file_name != '':
         self.file_name = file_name
 def _open_set ( self ):
     """ Handles the user clicking the 'Open...' button.
     """
     file_name = open_file( extensions = ImageInfo(),
                            filter     = filters,
                            id         = demo_id )
     if file_name != '':
         self.file_name = file_name
Exemplo n.º 3
0
 def _open_set ( self ):
     """ Handles the user clicking the 'Open...' button.
     """
     file_name = open_file()
     if file_name != '':
         self.file_name = file_name