Example #1
0
 def _delete_vocabulary(self):
     # item = self.tree.selection()[0]
     #item = self.tree.identify('item',event.x,event.y)
     #print("you clicked on", self.tree.item(item,"text"))
     values = self.tree.item(self.item,"values")
     print(values[0])
     db = 'studyenglish.db'
     tbl = 'vocabulary'
     sqlVocab = SqliteVocabulary("studyenglish.db", "vocabulary")
     words = sqlVocab.delete_word(values[0])