add reset shortcut and title

This commit is contained in:
vincent 2018-01-22 20:56:35 +01:00
parent ff36d68b98
commit 3dc5283739

View File

@ -65,11 +65,14 @@ def parsechaine():
def enter(evt):
click()
def eventreset(evt):
click_reset()
data=load_jsonfile('chaine.json')
fenetre = Tk()
fenetre.title("recherche de chaine")
value = StringVar()
if(len(sys.argv)>1):
@ -95,6 +98,7 @@ reset.pack(side = RIGHT)
label2.pack()
bouton_update_base.pack()
fenetre.bind("<Key-Return>",enter)
fenetre.bind("<Key-Escape>",eventreset)
if (arg==True):
for i in sys.argv[1:]:
value.set(i)