Pack() is a separate class for all widgets and not specific to the
Label widget i.e all widgets are "packed" into the parent. Here is
some documentation on the pack class http://effbot.org/tkinterbook/pack.htm
http://epydoc.sourceforge.net/stdlib/Tkinter.Pack-class.html
--
http://mail.python.org/m
On Mar 27, 1:39 pm, kuangye wrote:
> Hi, all. Why can not i find the pack method in tkinter.
> [...]
> w.pack() ###I can not find this method in Label and Label's ancesters
> ##So where does pack function come from??
Take a look at the Pack class in Tkinter.py, line 1765. It's a
rebinding of th
Hi, all. Why can not i find the pack method in tkinter.
code segment:
from Tkinter import *
root = Tk()
w = Label(root, text="Hello, world!")
w.pack() ###I can not find this method in Label and Label's ancesters
##So where does pack function come from??
root.mainloop()
--
http://mail.python