コード例 #1
0
 def edit_callback(self):
     """
     method used to edit the notes.
     :return:
     edited note.
     """
     try:
         EditNote().initUI(self, self.db,
                           self.cur_notes[self.listbox.curselection()[0]])
     except Exception as e:
         pass
コード例 #2
0
 def call_editor(self, obj=None):
     if obj is None:
         note = Note()
         note.set_type(self.get_notetype())
         func = self.obj_added
     else:
         note = obj
         func = self.after_edit
     try:
         EditNote(self.dbstate, self.uistate, self.track, 
                      note, func)
     except WindowActiveError:
         pass
コード例 #3
0
 def edit_callback(self):
     try:
         EditNote().initUI(self, self.db,
                           self.curr_notes[self.listbox.curselection()[0]])
     except Exception as e:
         pass