faqts : Computers : Programming : Languages : Python : Tkinter

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

40 of 60 people (67%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How do I create a popup window with text?

Aug 7th, 2000 05:18
unknown unknown, Grant Edwards


#!/usr/bin/python
from Tkinter import *
from SimpleDialog import SimpleDialog
# initialize GUI toolkit
root = Tk()
# pop up a dialog window with some text
SimpleDialog(root,
             text="Hi there\nHere is some text",
             buttons=["OK"],
             default=0,
             title="Demo Dialog").go()
# notice the go()