correction syntaxique

This commit is contained in:
vincent 2018-01-22 21:46:53 +01:00
parent c98730cef0
commit e129a0643c

View File

@ -75,7 +75,7 @@ fenetre = Tk()
fenetre.title("recherche de chaine") fenetre.title("recherche de chaine")
value = StringVar() value = StringVar()
if(len(sys.argv)>1): if len(sys.argv) > 1:
arg = True arg = True
else: else:
value.set("") value.set("")
@ -99,7 +99,7 @@ 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) 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)
click() click()