1. Home
  2. Computing & Technology
  3. Python

"Hello, World!" in Python With Tkinter

From , former About.com Guide

4 of 10

A Prototypical Greeter

As mentioned previously, graphic user interface (GUI) programming relies heavily on object-oriented principles. In the case of our program, we need to define a class that will then be called by the main function.

We are using the Tkinter toolkit and not recreating it, so we will create an inherited class that relies on Tkinter's Frame class.

class Greeter (Frame):
From there, we will next define functions for each window or frame that we want our program to create.

Explore Python
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Python

©2009 About.com, a part of The New York Times Company.

All rights reserved.