[Tkinter-discuss] [Fwd: Re: Using a window style in a Toplevel window]
craf
prog at vtr.net
Fri Dec 3 18:42:45 CET 2010
--------- Mensaje reenviado --------
> De: Michael Lange <klappnase at web.de>
> Para: tkinter-discuss at python.org
> Asunto: Re: [Tkinter-discuss] Using a window style in a Toplevel
> window
> Fecha: Fri, 3 Dec 2010 18:21:24 +0100
>
> 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
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
OOOPs, my fault.Obvious mistake and did not see.
Thank you very much!
Regards.
Cristian
More information about the Tkinter-discuss
mailing list