Raspberry Pi Workshop - Chapter 4 - Your First GUI with TkInter and Python

preview_player
Показать описание

We're going to whip-up a very simple GUI to toggle a GPIO pin with. This will familiarise us with the Tkinter workflow:

- Create the main GUI window
- Create widget, required variable(s)
- Position the widget
- Create and attach an event-function
- Program the function to do what you want
- Repeat steps 2-6 as required

Core Electronics is your home in Australia for:

Рекомендации по теме
Комментарии
Автор

My 12yo daughter was amazed at how easy it was to learn and follow your instructions. Great content that was explained in an amazingly easy to follow direction. Please please make more RasPi/python projects. ...and Thank you!!

GK-zgvq
Автор

Dude very well done I now will start following your videos they are fantastic. Direct and to the point.

MaxGoddur
Автор

Best pi tutorial I've seen! Great job.

jerrymckee
Автор

This. This is what I've been after for a program to control my strobes in my truck from a PI with a 7" touchscreen. Mystery solved, and level unlocked, I will be busy for a while on this.. So many options to add, like color changing buttons, sliders, and more. Thanks!

TheCustomGeek
Автор

Thank you man, Got a great inspiration to read about Raspberry pi Further. Thanks a lot.

aakashlimbu
Автор

This is the best thing I watched today

Jousef
Автор

Great video - well narrated and easy to follow - thanks.

TechMoto
Автор

How come you don't have that many subscribers? You tutorials are pretty good

ciprianciprian
Автор

Great tutorial. Clear and easy to follow!

cjlowe
Автор

Thank you have been looking for this combo for a very long time. I mean why are there, not more videos on marrying Python and Raspbi??

MaxGoddur
Автор

Nice and Simple, job well done, no mess no fuss!

johnward
Автор

This prompts a question. Can this be incorporated into a browser or an app for a cell phone?

MaxGoddur
Автор

Super clip and information provided,
my question is....
did you stick the rasbbery with chewing gum? On the table?

albertnikolas
Автор

Thank you for your tutorial. Small question, I could convert this app to be like .exe file on windows, in order to secure code and to be more understandble to install for users?

gleb.stachev
Автор

Ben fatto, molto utile per principianti. Grazie! Thanks!

andreal.
Автор

Thanks!! Do you have a video showing how to make the gui accessible from a web browser?

newgardenfarms
Автор

This was a great tutorial for a beginner like me! Now I am trying to create 2 buttons one to turn the led on and off, and one to start the led with PWM. When I run this script I get the error that pin 21 is already in use. Any idea how I can create 2 buttons that manipulate the same pin?

nicholaspullo
Автор

This is my first try with a GUI. I am using Thonny with a Pi 3B. Thanks, very much for this. I changed the text to say RELAY and it works to control my Relay just fine. I do have one glitch though. The program it initially turns the relay on when I hit run, and the GUI does not know it's ON, till I cycle the GUI toggle button once. Is there a way for it not to turn on my relay until I actually click the button? Again thanks very much.

leonewing
Автор

Nice tutorial. 👌👌
Can you please make the same project for controlling the gpio pins of raspberry pi pico microcontroller??

anokhautomation
Автор

Very informative, but I want to try to make more artistic looking buttons, like a custom shape and design even if the tigger area is a plain rectangle, I want the GUI to look cool and modern with texture and highlights, I dont mind drawing it from scratch, but drawing it by using text like you just did, would be extremely difficult. Does anyone has any suggestion of any software I could use where i could import the designs I want?

TCreatorO