modif object label image
This commit is contained in:
parent
756286ca75
commit
4f93592845
@ -26,10 +26,9 @@ class LabelImage(Label):
|
|||||||
|
|
||||||
def __init__(self,parent,url):
|
def __init__(self,parent,url):
|
||||||
raw_data = urllib.request.urlopen(url).read()
|
raw_data = urllib.request.urlopen(url).read()
|
||||||
image = ImageTk.PhotoImage(file=io.BytesIO(raw_data))
|
imagetoinsert=ImageTk.PhotoImage(file=io.BytesIO(raw_data))
|
||||||
Label.__init__(self,parent,image=image)
|
Label.__init__(self,parent,image=imagetoinsert)
|
||||||
self.image = image
|
self.image = imagetoinsert
|
||||||
|
|
||||||
|
|
||||||
class Interface:
|
class Interface:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user