Tkinter: Make them come back!
Matthew Dixon Cowles
matt at mondoinfo.com
Thu Apr 26 15:56:35 EDT 2001
On Thu, 26 Apr 2001 12:12:16 -0700, Phlip <phlip_cpp at my-deja.com>
wrote:
>I want two top level windows, each with a label in it...
[. . .]
Try something like:
from Tkinter import *
top1=Tk()
lab1=Label(top1,text="simple 1")
lab1.pack()
top2=Toplevel()
lab2=Label(top2,text="simple 2")
lab2.pack()
You get one window "for free". Only the second one requires a Toplevel().
Regards,
Matt
More information about the Python-list
mailing list