add reset shortcut and title
This commit is contained in:
parent
ff36d68b98
commit
3dc5283739
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user