add multi arg
This commit is contained in:
parent
bafae1ed30
commit
ff36d68b98
@ -71,11 +71,10 @@ def enter(evt):
|
|||||||
data=load_jsonfile('chaine.json')
|
data=load_jsonfile('chaine.json')
|
||||||
fenetre = Tk()
|
fenetre = Tk()
|
||||||
value = StringVar()
|
value = StringVar()
|
||||||
try:
|
|
||||||
sys.argv[1]
|
if(len(sys.argv)>1):
|
||||||
value.set(sys.argv[1])
|
|
||||||
arg=True
|
arg=True
|
||||||
except IndexError:
|
else:
|
||||||
value.set("")
|
value.set("")
|
||||||
arg=False
|
arg=False
|
||||||
|
|
||||||
@ -97,6 +96,8 @@ label2.pack()
|
|||||||
bouton_update_base.pack()
|
bouton_update_base.pack()
|
||||||
fenetre.bind("<Key-Return>",enter)
|
fenetre.bind("<Key-Return>",enter)
|
||||||
if (arg==True):
|
if (arg==True):
|
||||||
|
for i in sys.argv[1:]:
|
||||||
|
value.set(i)
|
||||||
click()
|
click()
|
||||||
value.set("")
|
value.set("")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user