コード例 #1
0
 def edit_word(self):
     index = self.words_table.currentRow() + self.row * (self.page_number - 1)
     dictionary = self.dictionaries[self.dict_combo.currentIndex()]
     word = Word.objects.filter(dictionary=dictionary.abbrev) \
                 .order_by('original')[index]
     edit_word = AddWordWidget(self)
     edit_word.word = word
     edit_word.words_widget = self
     edit_word.show()
コード例 #2
0
 def new_word(self):
     add = AddWordWidget(self)
     add.words_widget = self.words_widget
     add.show()