From the course: Python GUI Development with Tkinter

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Revisiting Hello, Tkinter!

Revisiting Hello, Tkinter!

From the course: Python GUI Development with Tkinter

Start my 1-month free trial

Revisiting Hello, Tkinter!

- [Developer] We just finished a brief overview of widgets, geometry management and event handling in Tkinter. Now, let's look at a more advanced version of the Hello Tkinter program from earlier written using object-oriented design, and our newly learned Tkinter concepts. I'm going to open up the exercise files that are included with this course and navigate to the Chapter Two directory. Inside there you'll find a Python file called hello_local and if you right click on that file, you can chose to open it with IDLE. This is the IDLE text editor and from here, I can run the application by going to the Run dropdown menu, and selecting Run Module. You'll see this creates a window similar to what we saw in the Hello Tkinter example earlier. We have the message Hello, Tkinter, but now we also have two buttons, one labeled Texas and the other labeled Hawaii. If I click on the Texas button, it changes the message to say: Howdy, Tkinter and if I click on the Hawaii button, it changes it to…

Contents