| 54 | self.label3.grid(column=3,row=3,pady=5,padx=20) |
| 55 | |
| 56 | def show_keys(self,select_id): |
| 57 | global select_keys |
| 58 | # get the indices from our sinographs list |
| 59 | select_id = self.lists.curselection() |
| 60 | keyslists = self.lists |
| 61 | # get selected items |
| 62 | select_keys = ",".join(keyslists.get(i) for i in select_id) |
| 63 | # delete the previous sinograph |
| 64 | self.canvas.delete('all') |
| 65 | # create a new sinograph |
| 66 | self.canvas.create_text(100,100,text=select_keys,font=('Roboto','45')) |
| 67 | |
| 68 | def show_pinyin(self): |
| 69 | self.label1['text'] = self.dictionary[select_keys][0] |