From d82212a3620e2047ad512aad14c2d39333c1f2b7 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 26 Aug 2018 15:26:27 +0200 Subject: [PATCH] modif label link --- chaineTV.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/chaineTV.py b/chaineTV.py index ad40584..c073c92 100644 --- a/chaineTV.py +++ b/chaineTV.py @@ -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("",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()