Showing posts with label gui. Show all posts
Showing posts with label gui. Show all posts

Monday, May 4, 2009

Simple minimal Tkinter program

A simple Tkinter program that runs on Python 3. For previous version of Python, please replace tkinter with Tkinter.
from tkinter import *
# Create a Tk root widget.
root = Tk()
# Create a Label widget as a child to the root window
simpleWin = Label(root, text="Hello from rizauddin.com!")
# Call the pack method to place the label on the window.
simpleWin.pack()
# The event loop.
root.mainloop()