[Tkinter-discuss] Using a window style in a Toplevel window
Michael Lange
klappnase at web.de
Fri Dec 3 18:21:24 CET 2010
Hi,
Thus spoketh craf <prog at vtr.net>
unto us on Fri, 03 Dec 2010 14:04:27 -0300:
(...)
> def window():
> t = Toplevel()
> button2 = Button(t,text='Hello').pack()
>
>
> CODE EXPLANATION:-------------------------------------------
>
> 1. From the main module FMain.py call the window function that is
> located in FSecondWindow module and create a toplevel window.
>
> 2.I apply a theme called 'clam' to the master window to improve the
> appearance of their widgets.
>
> QUERY:--------------------------------------------------
>
> How I can make the toplevel window also take the theme 'clam'?
It should already do this, but you should use ttk widgets instead of the
plain tkinter ones (in your example a ttk.Button instead of the Button).
Regards
Michael
.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.
There's another way to survive. Mutual trust -- and help.
-- Kirk, "Day of the Dove", stardate unknown
More information about the Tkinter-discuss
mailing list