Project: Electronics Bash - #27 - Graphical User Interfaces
Sick and tired of typing? Bored of button mashing? Tucked out by using the terminal? What if you could interact with your programs using a graphical user interface you designed yourself? This week, we'll look at using TK/TKinter to build simple graphical interfaces to underlying Python programs.
- Topics Include:
- The structure of a TKinter GUI program
- Various TKinter widgets
- Layering a TKinter program over your existing code
This week's class had no slides.
Code
Hello World
Click here to view code on GithubFrame
Click here to view code on GithubLabels
Click here to view code on GithubButton
Click here to view code on GithubMore Buttons
Click here to view code on GithubFont
Click here to view code on GithubChanging Properties
Click here to view code on GithubVariables
Click here to view code on GithubGrid
Click here to view code on GithubLots of Widgets
Click here to view code on GithubTraffic Light
Click here to view code on GithubResources and Links
Links and Resources:
Raspberry Pi Homepage: https://www.raspberrypi.org/
Raspberry Pi OS: https://www.raspberrypi.org/downloads/
MagPi Magazine: https://magpi.raspberrypi.org/
Python Reference: https://docs.python.org/3/tutorial/index.html
Getting Started:
Raspberry Pi Imager: https://www.raspberrypi.org/downloads/
Troubleshooting Guide: https://www.raspberrypi.org/learning/troubleshooting-guide/
Display Troubleshooting: https://www.raspberrypi.org/documentation/hardware/display/troubleshooting.md
Starting w/o a Monitor: https://bit.ly/33IvKCc
Materials:
Video on Raspberry Pi Supplies: https://youtu.be/zeHvQZzkxbk
Raspberry Pi 4: https://www.adafruit.com/product/4292
Power Supp;y: https://amzn.to/2PiU6u6
MicroSD Card: https://amzn.to/2EHfHdA
MicroSD Card Reader: https://amzn.to/2EEmNiR
Micro HDMI to HDMI Cable: https://amzn.to/3jWffYW
Keyboard and Mouse: https://amzn.to/39LRX3v
Cat5 Cable: https://amzn.to/2EzoJcm
Some of the above links are Amazon affiliate links - ordering products through these links provides a small amount of support to the channel at no cost to you.