Setting Dialog Box Captions ??

Aurelio Martín amartin at wpsnetwork.com
Mon Jun 18 13:29:57 EDT 2001


Peter Moscatt <pmoscatt at bigpond.net.au> escribió en el mensaje de noticias
mQlX6.140495$ff.1066592 at news-server.bigpond.net.au...
> How does one place a "Title" in the master frame ?
>
> For example, if I was to have the following code:
>
> from Tkinter import *
> root=Tk()
> w=Label(root, text="Hello World")
> w.pack()
> root.mainloop()
>
> And now I wanted to place "This is My Test Dialog" as the caption for the
> root frame - how would I doo this ?
>
> Regards
> Pete
>
>

root.title( "This is My Test Dialog" )






More information about the Python-list mailing list