Beispiel #1
0
 def save(self):
     if not self.filename:
         filename = QtGui.QFileDialog.getSaveFileName(self, 'Guardar Archivo', '.')
         filename = filename[0]
         self.filepath = filename
         self.filename = filename.split(os.sep)[-1]
     else:
         filename = self.filepath
     if filename:
         try:
             saveFileFromEditor(self, filename)
         except:
             self.saveFile(filename)
Beispiel #2
0
 def on_actionSave_as_triggered(self):
     """ Save the current file as"""
     filename = QFileDialog.getSaveFileName(self)[0]
     if filename != "":
         saveFileFromEditor(self.ui.genericEditor, filename)
Beispiel #3
0
 def on_actionSave_triggered(self):
     """ Save the current file """
     saveFileFromEditor(self.ui.genericEditor)