Example #1
0
 def addToCollection(self):
     self.mouseReleaseEvent(None)
     q = "<br />".join(map((lambda a: a.txt), self.examples))
     collection.add_note(q, "<strong>"+self.entry_view.entry.original_key+"</strong>")
     for i in self.examples:
         i.hide()
     self.examples = []
     self.add_button.hide()
Example #2
0
 def saveDef(self):
     self.dwnd.wordlist_view.addSense(self.sense)
     collection.add_note(self.format_key_html(), self.format_erased_definition_html())