Answer the question
In order to leave comments, you need to log in
Tkinter (wm_iconwindow) Need help understanding a function?
I still want to know how iconwindow works.
I read a bunch of descriptions, and I'm trying to follow these descriptions.
I attached a screenshot with descriptions ...
Here is the whole code:
# coding=utf-8
__author__ = ‘Paddy’
from Tkinter import *
import os.path
import random
from PIL import Image, ImageDraw
root = Tk()
img = PhotoImage(name='skype.ico')
L2F= LabelFrame(root,width=100,heigh=200,bg='yellow')
L2F.pack()
print (root.wm_iconwindow(pathName=L2F))
def btn(event):
l= root.wm_state('icon')
print TkVersion
button = Button(root,
image=img,
text=u“Skype”,
width=30,height = 30)
button.bind(“<Button>”,btn)
button.pack()
root.mainloop()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question