diff --git a/chaineTV.py b/chaineTV.py index 5423e80..1641a6c 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()