Тёмный

Tkinter Beginner Course - Python GUI Development 

NeuralNine
Подписаться 371 тыс.
Просмотров 533 тыс.
50% 1

In this video course we learn the basics of GUI development in Python using Tkinter.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine...
💻 The Algorithm Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 364   
@jessicaabroad1391
@jessicaabroad1391 5 месяцев назад
5:38 - Adding text box 7:50 - Making entry 8:41 - Making a button 10:24 - Grid of buttons (buttonframe)
@DoctorTemblor
@DoctorTemblor 4 месяца назад
16:00 button with setted place
@goofyworld5410
@goofyworld5410 12 дней назад
@jessicaabroad1391 you know, we need more great people like this
@Dominator046
@Dominator046 2 месяца назад
Came back around again just to say how good this tutorial is; it's my goto for handing out to people - or refreshing myself when I step away from Python for a minute.
@charleselliott4943
@charleselliott4943 Год назад
You may be the best teacher on youtube. Thanks for keeping it simple, clean and focused on the most important topics.
@habibullahshaik6986
@habibullahshaik6986 Год назад
I agree
@juancharlie777
@juancharlie777 7 месяцев назад
Quite a statement. I wouldn't argue against it though. @NeuralNine - please keep up the good work!
@VinothKumar-ut4rj
@VinothKumar-ut4rj 6 месяцев назад
I too agree with
@Dominator046
@Dominator046 Год назад
This is the best python gui tutorial around, as far as I'm concerned. With another video for playing with grids, and digging into the properties of different widgets, you're golden. Only suggestion is to start half way in with the class-focused start.
@chorltondragon
@chorltondragon 6 месяцев назад
Excellent video. No fluff. Totally clear and easy to build from. This was exactly what I needed. Thanks!
@renealbrechtsen9743
@renealbrechtsen9743 6 месяцев назад
I wish more programming videos like this.
@zetho.270
@zetho.270 Месяц назад
never thought that sneako would be teaching me tkinter
@arnavmeena525
@arnavmeena525 3 года назад
Finally... The guy I was following from 13K has crossed 100K. The 88K journey was long but I enjoyed it. I was able to get a lot of new information from you. Congrats to you 🎉🎉.
@yusiferzendric1489
@yusiferzendric1489 3 года назад
Hey don't be a likes gainer. You are a new one here, I can bet you are not following from 13k, cuz firstly you have only 9 comments on the channel and they are on recent videos only, and also your account is only a year old. I am following from 17k well 1.5 years back and literally very happy on 100k :D
@arnavmeena525
@arnavmeena525 3 года назад
@@yusiferzendric1489 You can think whatever you want to 😃.
@arnavmeena525
@arnavmeena525 3 года назад
@@yusiferzendric7600 Cool
@arnavmeena525
@arnavmeena525 3 года назад
@@yusiferzendric7600 I would just like to say that I have been following him. I didn't mention if it was with just this account or another. Also, my comments on his videos doesn't decide for how long I have been following him. I don't like to comment much on videos myself. So you won't see me commenting much on RU-vid.
@vali69
@vali69 Год назад
​@@arnavmeena52587*
@shaunakwasker20
@shaunakwasker20 2 дня назад
I loved this video as a Python beginner! Thank you for making such a clear and concise tutorial.
@cmrncrick
@cmrncrick Год назад
I absolutely LOVE every video you put out!!! Thank you so much for them. I also have your 7 in 1 Python Bible and it's amazing. Appreciate all the knowledge you put out there.
@abdullahhaidary149
@abdullahhaidary149 3 месяца назад
Your explanation was very clear and simple Keep the good work up!
@ComradeMuffin.
@ComradeMuffin. Год назад
My university prof gave us an assignment about coding a GUI in python but didnt teach us about how to do it at all, so thank you for making this video.
@rayyan_060
@rayyan_060 Год назад
from tkinter import Tk window = Tk() window.title("play button") w = window window.geometry("2000x2000") window.resizable(False, False) window.iconbitmap("C:/Users/home/Desktop/CODE/my projects/tk(GUI)/playbutton.ico") # icon window.configure(bg="red") window.attributes("-alpha", 0.005) window.overrideredirect(True) window.mainloop() kill terminal and run if its didn't work alt f4 for close
@PhoenixSunshin
@PhoenixSunshin 9 месяцев назад
want to say thank you so much for all this training!!! it surely helped me with tkinter self-training🖐
@jongalloway4104
@jongalloway4104 3 года назад
Such clear and concise teaching! Thank you so much! I love watching your videos.
@aikiwolfie
@aikiwolfie Год назад
Very good introduction. I followed it on my Linux machine. The only difference was Tkinter wasn't installed by default. But that was an easy fix.
@mehanik4
@mehanik4 10 месяцев назад
Really nice video, straight to the point and easy to follow.
@beatroch
@beatroch Год назад
You're such a good man, for sharing all your knowledge about Tkinter. Thank you so much.
@kevinmerrell9952
@kevinmerrell9952 3 месяца назад
Good stuff. I plan on making a GUI alarm clock using Python.
@trustmaramba86
@trustmaramba86 Год назад
Best tutorial i have had so far on Tkinter, very informative and well presented.
@rayyan_060
@rayyan_060 Год назад
from tkinter import Tk window = Tk() window.title("play button") w = window window.geometry("2000x2000") window.resizable(False, False) window.iconbitmap("C:/Users/home/Desktop/CODE/my projects/tk(GUI)/playbutton.ico") # icon window.configure(bg="red") window.attributes("-alpha", 0.005) window.overrideredirect(True) window.mainloop() kill terminal and run if its didn't work alt f4 for close
@kavehnematipour
@kavehnematipour Месяц назад
Good video. Proper speed, Useful information. No ado.
@tonymakdissy3507
@tonymakdissy3507 Год назад
One of the best tutorials I've seen, thanks for the amazing job
@rayyan_060
@rayyan_060 Год назад
from tkinter import Tk window = Tk() window.title("play button") w = window window.geometry("2000x2000") window.resizable(False, False) window.iconbitmap("C:/Users/home/Desktop/CODE/my projects/tk(GUI)/playbutton.ico") # icon window.configure(bg="red") window.attributes("-alpha", 0.005) window.overrideredirect(True) window.mainloop() kill terminal and run if its didn't work alt f4 for close
@xoxogamewolf7585
@xoxogamewolf7585 Год назад
Arial isn't actually a font in tkinter, its just not recognizing the font your inputting and defaulting to Helvetica.
@tayze9008
@tayze9008 3 года назад
Was just starting to learn Tkinter and I see this. Your videos are too accurate.
@xfinity9397
@xfinity9397 3 года назад
Dont
@tayze9008
@tayze9008 3 года назад
@@xfinity9397 Why?
@xfinity9397
@xfinity9397 3 года назад
@@tayze9008 Its bad so. There is no use case of it.
@tayze9008
@tayze9008 3 года назад
@@xfinity9397 Do I use Pygame or PyQT instead?
@xfinity9397
@xfinity9397 3 года назад
@@tayze9008 see the thing is , building apps completely on python is bad. Dont do it unless you are being forced to and have to do it in python itself. Apart from that there is not much case you will find where you have to use tkinter there are much more alternatives which are in much more in demand and have large learning curve.
@suryakamalnd9888
@suryakamalnd9888 6 месяцев назад
if you get AttributeError: partially initialized module 'tkinter' has no attribute 'Tk' (most likely due to a circular import) , then, make sure your project is not named tkinter.py... that's what is causing the problem..
@ameen272-amin
@ameen272-amin 5 месяцев назад
Nah, i can name it as anything, you just have to put it in a separate folder from other things.
@hossamketfi9892
@hossamketfi9892 Год назад
you deserve 2,743,418 views for this video that respects the person's brain and doesn't try to bore him to death
@rayyan_060
@rayyan_060 Год назад
from tkinter import Tk window = Tk() window.title("play button") w = window window.geometry("2000x2000") window.resizable(False, False) window.iconbitmap("C:/Users/home/Desktop/CODE/my projects/tk(GUI)/playbutton.ico") # icon window.configure(bg="red") window.attributes("-alpha", 0.005) window.overrideredirect(True) window.mainloop() kill terminal and run if its didn't work alt f4 for close
@S24W2
@S24W2 Год назад
This is what most RU-vid videos lack- clarity! Thank you so much, new sub 👍
@annabandana9889
@annabandana9889 Год назад
This was excellent and much better than my Python teacher!! I am definitely going to check out all of your video and tutorial series.
@QuransGems-zd1jd
@QuransGems-zd1jd 3 месяца назад
I think choosing the class way of doing it all just made it more complex.
@Overlycomplicatedswede
@Overlycomplicatedswede 5 месяцев назад
Thank you for this guide very easy to understand and follow and straight to the point
@IAmNotVerified
@IAmNotVerified Год назад
i get slightly mad when you switch your cursor to the highlighter thingy and then switch it right back to the line when u need to type
@luvsk-rg2xq
@luvsk-rg2xq 8 месяцев назад
14:03 absolutely the main reason why i do the sticky stuff.
@wburris2007
@wburris2007 4 месяца назад
great but you missed the most important part, a drawing canvas for doing things like drawLine, drawRectangle, drawCircle
@alleged_STINK
@alleged_STINK 7 месяцев назад
great introduction, got a lot to work with and branch off from now. thanks!
@icarofreire5079
@icarofreire5079 2 года назад
Clear thought process and right to the point. Thanks
@sherlokie2000
@sherlokie2000 7 месяцев назад
Thank you, very useful for my first tkinter script!
@Ente64
@Ente64 Год назад
Thanks for taking the time of doing this. We really appreciate the knowledge you're sharing.
@kaushiki.sharma
@kaushiki.sharma 3 месяца назад
You made it really simple ! Thanksss
@timmytimlinson
@timmytimlinson 11 месяцев назад
Great video! Also, since you asked, it's pronounced "tair off" as in tearing a piece of paper.
@ritikmehra500
@ritikmehra500 3 года назад
Damn this is all i was waiting for😍
@robynrox
@robynrox 2 месяца назад
Excellent, thank you!
@DavidCampbellFilms
@DavidCampbellFilms Год назад
Thank you for making this. It's such a clear and well explained tutorial. It was most helpful in giving me an understanding of tkinter. Thanks again.
@justinianpintilie5999
@justinianpintilie5999 Год назад
The tutorial was so useful, thank you! Congrats!
@daveys
@daveys 10 месяцев назад
Nice examples of some of the basic things you can use tkinter for.
@therumblemain
@therumblemain Год назад
Under rated video. I was trying to make a GUI calculator on my own (yes I know you have a video on that) and I didnt know what to do
@twi4458
@twi4458 Год назад
Awesome course, most imp thing, uou taught how to do it by own
@brandonmohammed9092
@brandonmohammed9092 Год назад
So in following along with this, i realized that Tkinter have changed state. I can't use it as it was used in the video. I would have to use modifier and such. I still don't understand the new way. Just letting yall know UPDATE: After reading through this: def bind(self, sequence=None, func=None, add=None): """Bind to this widget at event SEQUENCE a call to function FUNC. SEQUENCE is a string of concatenated event patterns. An event pattern is of the form where MODIFIER is one of Control, Mod2, M2, Shift, Mod3, M3, Lock, Mod4, M4, Button1, B1, Mod5, M5 Button2, B2, Meta, M, Button3, B3, Alt, Button4, B4, Double, Button5, B5 Triple, Mod1, M1. TYPE is one of Activate, Enter, Map, ButtonPress, Button, Expose, Motion, ButtonRelease FocusIn, MouseWheel, Circulate, FocusOut, Property, Colormap, Gravity Reparent, Configure, KeyPress, Key, Unmap, Deactivate, KeyRelease Visibility, Destroy, Leave and DETAIL is the button number for ButtonPress, ButtonRelease and DETAIL is the Keysym for KeyPress and KeyRelease. Examples are for pressing Control and mouse button 1 or for pressing A and the Alt key (KeyPress can be omitted). An event pattern can also be a virtual event of the form where AString can be arbitrary. This event can be generated by event_generate. If events are concatenated they must appear shortly after each other. FUNC will be called if the event sequence occurs with an instance of Event as argument. If the return value of FUNC is "break" no further bound function is invoked. An additional boolean parameter ADD specifies whether FUNC will be called additionally to the other bound function or whether it will replace the previous function. Bind will return an identifier to allow deletion of the bound function with unbind without memory leak. If FUNC or SEQUENCE is omitted the bound function or list of bound events are returned.""" I saw that there is a easier way to check for the control and enter. Essentially there are modifiers that can be pressed and these are explained here: MODIFIER is one of Control, Mod2, M2, Shift, Mod3, M3, Lock, Mod4, M4, Button1, B1, Mod5, M5 Button2, B2, Meta, M, Button3, B3, Alt, Button4, B4, Double, Button5, B5 Triple, Mod1, M1. After modifiers, there is TYPE which is the normal keys: TYPE is one of Activate, Enter, Map, ButtonPress, Button, Expose, Motion, ButtonRelease FocusIn, MouseWheel, Circulate, FocusOut, Property, Colormap, Gravity Reparent, Configure, KeyPress, Key, Unmap, Deactivate, KeyRelease Visibility, Destroy, Leave and DETAIL is the button number for ButtonPress, ButtonRelease and DETAIL is the Keysym for KeyPress and KeyRelease The combination of these are placed in SEQUENCE in def bind(self, sequence=None, func=None, add=None) Examples are for pressing Control and mouse button 1 or for pressing A and the Alt key (KeyPress can be omitted). An event pattern can also be a virtual event of the form where AString can be arbitrary So all in all, the new code is: self.textbox.bind("", self.shortcut) def shortcut(self, event): #Code here
@olrailbird
@olrailbird Год назад
Thanks! The code at shortcut can now be just self.show_message()
@RJ-dq7ue
@RJ-dq7ue 2 года назад
my self.check_state variable does not change, cannot work out why
@hello_world1221
@hello_world1221 11 месяцев назад
Thanks for the great content. I really appreciate that. It is very easy to understand.
@joanadewusi3771
@joanadewusi3771 Год назад
Finally , what I learnt in my course isn't so confusing.
@gaborkoczian9065
@gaborkoczian9065 Год назад
thank you, clear and useful for beginners
@QuransGems-zd1jd
@QuransGems-zd1jd 3 месяца назад
8:00 some words of wisdom : " I can't press enter, I mean I can press enter but nothing happens "
@RefiaNur
@RefiaNur 9 месяцев назад
It is not teroff, it is combine of casual tear and off
@joaquins.a.2830
@joaquins.a.2830 3 года назад
Hallo, dein Englisch ist perfekt. Bei Deinen ersten "zehn" Videos habe ich gedacht Du bist aus den USA. Dann gab es mal ein Video mit einer Polizeisirene im Hintergrund und da wußte ich, dass Du in Österreich wohnst.
@josephdaquila2479
@josephdaquila2479 7 месяцев назад
Im assuming too the object oriented approach would become more useful as you have different facets to the program like a database connection or something
@tacomiester
@tacomiester 7 месяцев назад
“Unless you use matlab obviously” triggered my ptsd
@naderbazyari2
@naderbazyari2 Год назад
Awesome video. Tausend Dank
@QuransGems-zd1jd
@QuransGems-zd1jd 3 месяца назад
17:13 part two just getting started!
@davidmahmud172
@davidmahmud172 Год назад
Thanks so much for the clear and brief explanations
@Hawk_R6
@Hawk_R6 Год назад
Amazing video, amazing speed
@RetroEcoChicken
@RetroEcoChicken Год назад
best python tutorial on youtube, hands down.
@SilatSkiller
@SilatSkiller 3 месяца назад
when i run current file. no visualisation has displayed, but code is w/o fault. 17:50 .. check box message. damn.. but calc buttons grid was fine. what i missed ?
@jinkhan1407
@jinkhan1407 2 года назад
Best for revision.
@joshuaennis2464
@joshuaennis2464 Год назад
I think tear. Like tearing paper. Not like crying
@davetech1
@davetech1 10 месяцев назад
Can you make a video explaining all the keywords you used
@iSven
@iSven 11 месяцев назад
Amazing tutorial!
@evilgenius8444
@evilgenius8444 6 месяцев назад
Well explained thanks
@fufnulius1
@fufnulius1 Год назад
can you type faster?
@dradhypexd1930
@dradhypexd1930 6 месяцев назад
agree
@tymek200101
@tymek200101 Год назад
Great video, very informative and consise, one piece of feedback is that it is very quiet and I need to significantly increase my volume to hear what you are saying
@johnny5941
@johnny5941 10 месяцев назад
the volume is good for me. I have the video and my device less than 30%. Also I am using headphones
@samfontecchio8250
@samfontecchio8250 Год назад
import tkinter as tk from tkinter import ttk # Sample DataFrame (Replace this with your actual DataFrame) import pandas as pd data = { 'TIME': [10, 20, 30, 40, 50, 60, 70, 80, 90, 100], 'T1': [35, 36, 37, 38, 39, 40, 41, 30, 29, 28], 'T2': [28, 27, 26, 25, 24, 23, 22, 21, 20, 19] } df = pd.DataFrame(data) def apply_conditions(selected_condition): # Step 1: Filter columns that contain a "T" columns_with_T = [col for col in df.columns if 'T' in col] # Step 2: Define conditions and identify the time ranges based on selected_condition if selected_condition == 'A': lower_threshold = -40.0 upper_threshold = -30.0 min_consecutive_rows = 5 elif selected_condition == 'B': # Define different conditions for option B lower_threshold = -50.0 upper_threshold = -40.0 min_consecutive_rows = 3 else: print(f"Unknown option: {selected_condition}") return selected_rows = [] condition_started = False for index, row in df.iterrows(): if condition_started and lower_threshold
@DomThePsy
@DomThePsy 5 месяцев назад
nice tutorial, thanks
@garfield-pro
@garfield-pro 3 года назад
Keep it up.
@tehseenbaig3198
@tehseenbaig3198 8 месяцев назад
sir i have a question, how to use buttons to visualize the child frames, which is in child frame.
@knecht6924
@knecht6924 11 месяцев назад
really good and interesting but damn that was fast
@MoodSwingZX
@MoodSwingZX Год назад
Wery understandable and it works xD
@Volcan-kf3oz
@Volcan-kf3oz Год назад
when you started the pack() at the end to the like `tk.Label(root, text='Hello World!', font=('Arial', 18)).pack()` just curious i just started learning python a few months ago and i enjoy it better than javascript
@mikhailwebb8377
@mikhailwebb8377 10 месяцев назад
I was beginning to like the video until I saw you using OOP, I left Java because of the complexity of OOP, yet here you are with this OOP stuff. I will watch to the end though.
@josephdaquila2479
@josephdaquila2479 7 месяцев назад
It seems useful though
@Dubai_life_
@Dubai_life_ 11 месяцев назад
Thank you.
@drago939393
@drago939393 3 месяца назад
I'm lost at the start; what UI is he even writing the code in? What app is that?
@hunterreehoorn7831
@hunterreehoorn7831 7 месяцев назад
Dumb question, noob here, but how do you get your functions to turn blue like that in pycharm? I like it for the ease to read aspect
@rexmicky381
@rexmicky381 7 месяцев назад
umm im not sure but maybe, you can't 'make' it blue, more like it automatically turns blue when you use the function.
@noor1450
@noor1450 Год назад
you're the best!
@SofinasTeame
@SofinasTeame 11 месяцев назад
Hi bro thank you so much, it is so interesting. i have some error in my code but i couldn't figure it out. Can you help me, please?
@ethanendures
@ethanendures Год назад
second time playing with tkinter, this tutorial is very understandable
@PAKGAMERZ_
@PAKGAMERZ_ Год назад
bro appriciated it maybe the top 10 videos i have ever watched on RU-vid ❤❤❤ EDIT: you earned a 🎉SUB🎉
@roadchewerpe5759
@roadchewerpe5759 7 месяцев назад
If my enter key returns 0, and my Control Return returns 4, how would that work on another device assuming it returns different numbers on different devices? Perhaps keyboard layout is what’s changing it?
@kychemclass5850
@kychemclass5850 Год назад
Nice intro. Tq.
@vegaripkont792
@vegaripkont792 3 года назад
Es war eine sehr effiziente Lektion für mich. Vielen Dank!
@taggerinto.o
@taggerinto.o Год назад
@Lucas Ich finde das auch absolut bodenlos.
@bobursuyunov00
@bobursuyunov00 Год назад
thanks for useful contents
@kamalshkeir
@kamalshkeir 3 года назад
Hi, i really appreciate your work, thank u very much, i would love to see more tutorials on golang , specially about go + wasm, or maybe go generics
@Debelinka
@Debelinka 9 месяцев назад
Liked and SUB! Thanks!!
@doudline2662
@doudline2662 Год назад
Thanks.
@talentmazhindu
@talentmazhindu Год назад
Appreciate it here in Africa where we cant afford for such knowledge, thank you man!
@rayyan_060
@rayyan_060 Год назад
from tkinter import Tk window = Tk() window.title("play button") w = window window.geometry("2000x2000") window.resizable(False, False) window.iconbitmap("C:/Users/home/Desktop/CODE/my projects/tk(GUI)/playbutton.ico") # icon window.configure(bg="red") window.attributes("-alpha", 0.005) window.overrideredirect(True) window.mainloop() kill terminal and run if its didn't work alt f4 for close
@hughielow563
@hughielow563 Год назад
Do you mind if I ask which IDE you use, Neural? It looks great.
@felanfelani9117
@felanfelani9117 Год назад
pycharm
@Dreamcatcher_Lvl_
@Dreamcatcher_Lvl_ 6 месяцев назад
did you learn programming in C/C++ ? those double quotes, looks familiar 😅
@hayad2088
@hayad2088 3 года назад
Hi, how to get the maximum resolution of android camera using kivy, please?
@rayyoudontneedtoknow6887
@rayyoudontneedtoknow6887 Год назад
You are a great teacher keep up the good work
@michaelmebratu2921
@michaelmebratu2921 2 года назад
Amazing 👏
@lucasferreira8229
@lucasferreira8229 Год назад
why the app I created, whenever started, also starts CMD window and it ramains open?
@salvadorsilva891
@salvadorsilva891 Год назад
my box doesnt stay checked idk why
@bananaman_813
@bananaman_813 11 месяцев назад
wich python model is this, its saying "invalid syntax"
@AngelicaGoodwin-d4e
@AngelicaGoodwin-d4e 8 месяцев назад
cool video)
@nemasis7943
@nemasis7943 Год назад
how do we use new frame while using classes
Далее
Using tkinter with classes
28:23
Просмотров 65 тыс.
Китайка и Максим Крипер😂😆
00:21
TEAM SPIRIT: НОВЫЙ СОСТАВ. SEASON 24-25
01:31
Python GUI Development Using PyQt5
22:08
Просмотров 197 тыс.
25 nooby Python habits you need to ditch
9:12
Просмотров 1,8 млн
Coding Was HARD Until I Learned These 5 Things...
8:34
OpenAI’s New ChatGPT: 7 Incredible Capabilities!
6:27
Modern Graphical User Interfaces in Python
11:12
Просмотров 1,5 млн
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Просмотров 1,6 млн
10 Important Python Concepts In 20 Minutes
18:49
Просмотров 133 тыс.
Китайка и Максим Крипер😂😆
00:21