some litle fix
This commit is contained in:
parent
86ccdbee75
commit
755876ec64
12
chaineTV.py
12
chaineTV.py
@ -1,4 +1,4 @@
|
||||
from tkinter import *
|
||||
from tkinter import Label,Button,Frame,Tk,Entry,StringVar,LEFT,RIGHT
|
||||
import json
|
||||
import sys
|
||||
import os
|
||||
@ -6,7 +6,7 @@ import unicodedata
|
||||
from bs4 import BeautifulSoup
|
||||
import webbrowser
|
||||
import urllib.request
|
||||
|
||||
import re
|
||||
|
||||
class Labbelink (Label):
|
||||
|
||||
@ -15,7 +15,7 @@ class Labbelink (Label):
|
||||
self.link=link
|
||||
self.bind("<Button-1>",self._openlink)
|
||||
|
||||
def _openlink(self,event):
|
||||
def _openlink(self,evt):
|
||||
webbrowser.open(self.link)
|
||||
|
||||
class Interface:
|
||||
@ -57,7 +57,6 @@ class Interface:
|
||||
|
||||
def click(self):
|
||||
print(self.value.get())
|
||||
labellink = Label(self.resultframe, text="")
|
||||
|
||||
try:
|
||||
link= Labbelink(self.resultframe,self.data[self.value.get()],geturlprogrammetv(self.data[self.value.get()]))
|
||||
@ -202,6 +201,5 @@ if len(sys.argv) > 1:
|
||||
else:
|
||||
cli(i)
|
||||
else:
|
||||
interface = Interface()
|
||||
interface.value.set("")
|
||||
interface.mainloop()
|
||||
Interface().mainloop()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user