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