1. Home
  2. Computing & Technology
  3. Python
Python Blog

From Al Lukaszewski, for About.com

Python and Tkinter: Calling main()

Friday November 21, 2008
After creating the main function of our Tkinter program, we still have one more step left to do. Even the best written function or class is useless until it is called. In the final step of our guide to Python and Tkinter, we check whether the program is called directly and, if so, execute the main function. To see how, check out "Calling main()". To see why we call it so, check out "What's in a Name?".

"Calling main()" is the last step in the series "'Hello, World!' in Python With Tkinter". If you have missed any of the steps along the way, you can catch up by starting with "A Word on Tkinter and GUI Toolkits".
Explore Python
About.com Special Features

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

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Python

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

All rights reserved.