Linux Today: Linux News On Internet Time.

More on LinuxToday

GUI Programming in Python For Beginners: Create a Timer in 30 Minutes

Mar 26, 2009, 21:01 (0 Talkback[s])
(Other stories by Akkana Peck)


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

"TkInter isn't necessarily the most powerful of the Python windowing packages, but it's well supported on all operating systems. You can give your application to your Windows- and Mac-using friends and they'll be able to run it, as long as they have Python installed. On Linux, though, you may have to install it: on Ubuntu or Debian the package is named python-tk, while in Fedora it's tkinter.

"For a project, start with a simple one. How about an "eggtimer"? I'm always forgetting that I have cornbread baking in the oven, or that I turned on the sprinklers in the garden. I need something to remind me.

"Let's start with a very simple Tkinter program. Paste the following into your editor of choice (vim, emacs, kate, leafpad or whatever) and write it to a file named, say, eggtimer:"

Complete Story

Related Stories: