MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / show_keys

Method show_keys

Chinese_FlashCard/app/app.py:56–66  ·  view source on GitHub ↗
(self,select_id)

Source from the content-addressed store, hash-verified

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]

Callers 1

setupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected