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 - Python Tutorial
From the course: Building Tools with Python
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Exploring the sample tool3m 6s
-
(Locked)
Using shell commands from Python3m 43s
-
(Locked)
Challenge: Use shell commands in Python52s
-
(Locked)
Solution: Use shell commands in Python2m 4s
-
(Locked)
Accepting arguments6m 31s
-
(Locked)
Challenge: Practice with arguments55s
-
(Locked)
Solution: Practice with arguments1m 28s
-
(Locked)
Providing error messages and logging5m 29s
-
(Locked)
Ensuring functionality2m 53s
-
(Locked)
Challenge: Check for necessary conditions51s
-
(Locked)
Solution: Check for necessary conditions1m 33s
-
(Locked)
Adding a user interface4m 28s
-
(Locked)
Packaging and distributing a tool4m 14s
-
(Locked)
Supporting the tool2m 2s
-
-