[Tkinter-discuss] Decorate un Frame with window managers title bar, etc en Tkinter 8.5
Michael Lange
klappnase at web.de
Wed Dec 1 20:36:40 CET 2010
Hi,
Thus spoketh craf <prog at vtr.net>
unto us on Wed, 01 Dec 2010 15:26:02 -0300:
(...)
>
> In Tkinter should be:
>
> ---TEST CODE-------------------
>
> from Tkinter import
>
> master = Tk()
> frame = Frame(master)
> wm_manager(Frame)
I think it should rather be frame.wm_manage() .
It seems like this hasn't made it into Tkinter yet (at least this is true
for 2.6.5) . Thus you will have to use Tkinter's Tcl interface, like this:
>>> from Tkinter import *
>>> root = Tk()
>>> f = Frame(root, bg='white')
>>> f.pack(fill='both', expand=1)
>>> f.wm_manage()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: Frame instance has no attribute 'wm_manage'
>>> f.tk.call('wm', 'manage', f._w)
''
>>>
This worked fine here.
I hope this helps
Michael
.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.
I'm a soldier, not a diplomat. I can only tell the truth.
-- Kirk, "Errand of Mercy", stardate 3198.9
More information about the Tkinter-discuss
mailing list