From 4f93592845600160ec19e9782e2aa977eedee66b Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 21 Aug 2018 11:36:06 +0200 Subject: [PATCH] modif object label image --- chaineTV.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/chaineTV.py b/chaineTV.py index 23135af..c3e8b9a 100644 --- a/chaineTV.py +++ b/chaineTV.py @@ -26,10 +26,9 @@ class LabelImage(Label): def __init__(self,parent,url): raw_data = urllib.request.urlopen(url).read() - image = ImageTk.PhotoImage(file=io.BytesIO(raw_data)) - Label.__init__(self,parent,image=image) - self.image = image - + imagetoinsert=ImageTk.PhotoImage(file=io.BytesIO(raw_data)) + Label.__init__(self,parent,image=imagetoinsert) + self.image = imagetoinsert class Interface: