A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/097572.html below:

Tkinter: Make them come back!

Tkinter: Make them come back! 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4