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!")
# Call the pack method to place the label on the window.
# The event loop.