From the course: Building Tools with Python

Unlock the full course today

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

Adding a user interface

Adding a user interface - Python Tutorial

From the course: Building Tools with Python

Start my 1-month free trial

Adding a user interface

- [Instructor] For users that might be more comfortable working in graphical user interface, there are options available to us to create a GUI. One of the things that makes Python a nice option for writing cross-platform tools is Tkinter, which lets us build basic graphical use interfaces that work and look pretty much the same across all platforms. They may not be all that polished or native looking, but they get the job done. Here in the slide count script, I've made a few changes. I removed the argument parsing code, because with this GUI, we won't be working with command line arguments anymore. Instead, we'll work with lists and other items that Tkinter provides. And I modified the slide counting code a little bit, putting it into a function called count, and replacing some of the print statements with calls to functions that will open up notification windows instead of writing out text to the terminal. And…

Contents