add reset shortcut and title
This commit is contained in:
parent
ff36d68b98
commit
3dc5283739
@ -65,11 +65,14 @@ def parsechaine():
|
|||||||
def enter(evt):
|
def enter(evt):
|
||||||
click()
|
click()
|
||||||
|
|
||||||
|
def eventreset(evt):
|
||||||
|
click_reset()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
data=load_jsonfile('chaine.json')
|
data=load_jsonfile('chaine.json')
|
||||||
fenetre = Tk()
|
fenetre = Tk()
|
||||||
|
fenetre.title("recherche de chaine")
|
||||||
value = StringVar()
|
value = StringVar()
|
||||||
|
|
||||||
if(len(sys.argv)>1):
|
if(len(sys.argv)>1):
|
||||||
@ -95,6 +98,7 @@ reset.pack(side = RIGHT)
|
|||||||
label2.pack()
|
label2.pack()
|
||||||
bouton_update_base.pack()
|
bouton_update_base.pack()
|
||||||
fenetre.bind("<Key-Return>",enter)
|
fenetre.bind("<Key-Return>",enter)
|
||||||
|
fenetre.bind("<Key-Escape>",eventreset)
|
||||||
if (arg==True):
|
if (arg==True):
|
||||||
for i in sys.argv[1:]:
|
for i in sys.argv[1:]:
|
||||||
value.set(i)
|
value.set(i)
|
||||||
|
Loading…
Reference in New Issue
Block a user