Beispiel #1
0
 def __pre_selection_changed(self, view, event, fs, nb):
     if self.__save:
         resp = qltk.CancelRevertSave(self).run()
         if resp == Gtk.ResponseType.YES:
             self.__save.clicked()
         elif resp == Gtk.ResponseType.NO:
             fs.rescan()
         else:
             nb.grab_focus()
             return True  # cancel or closed
 def __pre_selection_changed(self, view, event):
     if self.__save:
         if self.auto_save_on_change:
             self.__save.clicked()
             return
         resp = qltk.CancelRevertSave(self).run()
         if resp == Gtk.ResponseType.YES:
             self.__save.clicked()
         elif resp == Gtk.ResponseType.NO:
             return False
         else:
             return True  # cancel or closed