Example #1
0
File: ui.py Project: ViktorNova/Gum
 def save_as(self, *args):
     dialog = SaveFileDialog(app.list_extensions(), parent=self,
                             filename=self.notebook.filename())
     filename = dialog.get_filename()
     saved = False
     if filename != None:
         self.notebook.save_as(filename)
         saved = True
     return saved
Example #2
0
 def save_as(self, *args):
     dialog = SaveFileDialog(app.list_extensions(), parent=self,
                             filename=self.notebook.filename())
     filename = dialog.get_filename()
     saved = False
     if filename != None:
         self.notebook.save_as(filename)
         saved = True
     return saved
Example #3
0
File: ui.py Project: ViktorNova/Gum
 def save_selection_as(self, *args):
     dialog = SaveSelectionFileDialog(app.list_extensions(), parent=self,
                                      filename=self.notebook.filename())
     filename = dialog.get_filename()
     if filename != None:
         self.notebook.save_selection_as(filename)
Example #4
0
File: ui.py Project: ViktorNova/Gum
 def open(self, *args):
     dialog = OpenFileDialog(app.list_extensions(), parent=self,
                             filename=self.notebook.filename())
     filenames = dialog.get_filenames()
     for filename in filenames:
         self._do_open(filename)
Example #5
0
 def save_selection_as(self, *args):
     dialog = SaveSelectionFileDialog(app.list_extensions(), parent=self,
                                      filename=self.notebook.filename())
     filename = dialog.get_filename()
     if filename != None:
         self.notebook.save_selection_as(filename)
Example #6
0
 def open(self, *args):
     dialog = OpenFileDialog(app.list_extensions(), parent=self,
                             filename=self.notebook.filename())
     filenames = dialog.get_filenames()
     for filename in filenames:
         self._do_open(filename)