modif label link

This commit is contained in:
vincent 2018-08-26 15:26:27 +02:00
parent b01e3330e3
commit d1ea09682c

View File

@ -21,7 +21,7 @@ from kivy.graphics import Color,Rectangle
class Labbelink (Label):
def __init__(self,parent,text,link):
def __init__(self,text,link):
Label.__init__(self,text=text,fg="blue",cursor="hand2")
self.link=link
self.bind("<Button-1>",self._openlink)
@ -42,17 +42,17 @@ class LabelImage(Label):
class emmisionGUI(BoxLayout):
def __init__(self,parent,**kwarg):
BoxLayout.__init__(self,parent)
BoxLayout.__init__(self)
self.image=LabelImage(self,kwarg['img'])
self.image.pack()
self.LabelTitle=Labbelink(self,("emmision ce soir: "+kwarg["title"]),kwarg['href'])
self.LabelTitle=Labbelink(("emmision ce soir: "+kwarg["title"]),kwarg['href'])
self.LabelTitle.pack()
if len(kwarg['casting']) > 0:
self.LabelReal=Label(self,text="réalisateur: "+kwarg['casting'][0])
self.LabelReal=Label(text="réalisateur: "+kwarg['casting'][0])
self.LabelReal.pack()
self.labelCasting=Label(self,text="acteur: "+str(kwarg['casting'][1:]))
self.labelCasting=Label(text="acteur: "+str(kwarg['casting'][1:]))
self.labelCasting.pack()
self.LabelSynopsys=Label(self,text="synopsys: " +kwarg['synopsis'],wraplength=350)
self.LabelSynopsys=Label(text="synopsys: " +kwarg['synopsis'],wraplength=350)
self.LabelSynopsys.pack()