add multi chaine to gui

This commit is contained in:
vincent 2018-08-22 13:06:52 +02:00
parent 941bbf9d2f
commit fe0d5a4954

View File

@ -102,13 +102,14 @@ class Interface:
def click(self): def click(self):
print(self.value.get()) print(self.value.get())
Arrayvalue=self.value.get().split(" ")
for value in Arrayvalue:
try: try:
strlink=geturlprogrammetv(self.data[self.value.get()]) strlink=geturlprogrammetv(self.data[value])
link= Labbelink(self.resultframe.interior,self.data[self.value.get()],strlink) link= Labbelink(self.resultframe.interior,self.data[value],strlink)
link.pack() link.pack()
self.resultframe.update() self.resultframe.update()
print(self.data[self.value.get()]) print(self.data[value])
emision=parse_emmission(strlink) emision=parse_emmission(strlink)
@ -131,6 +132,7 @@ class Interface:
print("numero de chaine inconnue") print("numero de chaine inconnue")
unknow=Label(self.resultframe.interior, text="numero de chaine inconnue") unknow=Label(self.resultframe.interior, text="numero de chaine inconnue")
unknow.pack() unknow.pack()
self.value.set("") self.value.set("")
def click_reset(self): def click_reset(self):