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.
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.
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.
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 🎉🎉.
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
@@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 RUclips.
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.
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
Will need about 10 watches...then 5 followtypealongs and I'll get it. Incredible video. Although I have the gist. And I have a new respect for Classes, which I am now learning in earnest.
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
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
Excellent tutorial! You should make a tutorial for making a GUI for a facial recognition model that uses tkinter as a GUI to interface with the model or something of that nature.
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
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
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
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..
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.
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 ?
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
I added one functionality to ask to destroy the root when pressing "Esc". def end_program(self, event): if messagebox.askyesno(title = "Quit?", message = "Do you really want to quit?"): self.root.destroy() self.root.bind('', self.end_program)
great video, one problem. I'm using visual studio code, but the gui won't open? It says that it has been ran in the terminal but no window has popped up. My code is the exact same as yours
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
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
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?
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.
Would be helpful idlf if u could tell us which ide you're using I'm still stuck with vs code on my lightweight pc 16gb ram and Intel core i3 x64 py charm I see now
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.
5:38 - Adding text box
7:50 - Making entry
8:41 - Making a button
10:24 - Grid of buttons (buttonframe)
16:00 button with setted place
@jessicaabroad1391 you know, we need more great people like this
ty
thank you!!!
Excellent video. No fluff. Totally clear and easy to build from. This was exactly what I needed. Thanks!
I wish more programming videos like this.
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.
You may be the best teacher on youtube. Thanks for keeping it simple, clean and focused on the most important topics.
I agree
Quite a statement. I wouldn't argue against it though. @NeuralNine - please keep up the good work!
I too agree with
dont underestimate brocode
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.
Rapid fire. Clear. No bull. Great intro to Tkinter. Thanks!
want to say thank you so much for all this training!!! it surely helped me with tkinter self-training🖐
Thank you very much for an excellent introduction to the tkinter module. This was absolutely spot-on. 🙏
Thank you! This video serves as an amazing starting point to get to know what features tk offers without having to deep-dive into the doc.
I loved this video as a Python beginner! Thank you for making such a clear and concise tutorial.
9:47 here
2:57 geometry
3:36 title
4:50 Label
5:55 pack
6:18 Text
7:56 Entry
8:54 Button
thanks
Really nice video, straight to the point and easy to follow.
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.
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 🎉🎉.
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
@@yusiferzendric1489 You can think whatever you want to 😃.
@@yusiferzendric7600 Cool
@@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 RUclips.
@@arnavmeena52587*
Best GUI tutorial ever! Thanks.
Your explanation was very clear and simple
Keep the good work up!
You're such a good man, for sharing all your knowledge about Tkinter. Thank you so much.
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.
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
Such clear and concise teaching! Thank you so much! I love watching your videos.
Will need about 10 watches...then 5 followtypealongs and I'll get it. Incredible video. Although I have the gist. And I have a new respect for Classes, which I am now learning in earnest.
Good stuff. I plan on making a GUI alarm clock using Python.
One of the best tutorials I've seen, thanks for the amazing job
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
Best tutorial i have had so far on Tkinter, very informative and well presented.
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
never thought that sneako would be teaching me tkinter
Sneako is a stick compared to him but i see the resemblance lol
Sneako knows absolutely nothing about programming lol
Good video. Proper speed, Useful information. No ado.
finally i found the perfect one for beginners, pretty much understandable 🎉🎉🎉
great introduction, got a lot to work with and branch off from now. thanks!
This was excellent and much better than my Python teacher!! I am definitely going to check out all of your video and tutorial series.
This is what most RUclips videos lack- clarity! Thank you so much, new sub 👍
Thank you for this video. I enjoy learning tkinter with the help of your teaching skills
Excellent tutorial! You should make a tutorial for making a GUI for a facial recognition model that uses tkinter as a GUI to interface with the model or something of that nature.
Thank you for this guide very easy to understand and follow and straight to the point
14:03 absolutely the main reason why i do the sticky stuff.
Arial isn't actually a font in tkinter, its just not recognizing the font your inputting and defaulting to Helvetica.
Nice examples of some of the basic things you can use tkinter for.
Thanks for taking the time of doing this. We really appreciate the knowledge you're sharing.
Thank you, very useful for my first tkinter script!
Very nice - I ike that you do no stress things like many youtubers do :)
Excellent tutorial. you gotta be the best instructor on RUclips! great job!
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
Great video! Also, since you asked, it's pronounced "tair off" as in tearing a piece of paper.
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
I think choosing the class way of doing it all just made it more complex.
Awesome course, most imp thing, uou taught how to do it by own
you deserve 2,743,418 views for this video that respects the person's brain and doesn't try to bore him to death
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
Clear thought process and right to the point. Thanks
I've been wanting to learn GUI stuff for a while! thanks for this materials! subscription granted! cheers from Argentina!
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
You: And here is how simply and concisely you can do that easily.
Me: OHHHHHH, BUUUUUUTTTTOOOOOONS. 😊
Great tutorial, thanks man!
Damn this is all i was waiting for😍
Awesome tutorial! Making my own calculator right now!
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..
Nah, i can name it as anything, you just have to put it in a separate folder from other things.
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.
You made it really simple ! Thanksss
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
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.
Thanks for the great content. I really appreciate that. It is very easy to understand.
The tutorial was so useful, thank you! Congrats!
Personal Note:
Finished at: 26:49
ur really an awesome teacher
This is AWESOME!!! Thank you for sharing!! This has given me much more confidence in creating my projects
Can you make a video explaining all the keywords you used
Great video - really clear explanation, very well structured. Perfect introduction to TKInter
Finally , what I learnt in my course isn't so confusing.
Excellent, thank you!
how did you set up this enviroment, downloadying python, and what else? can you work on python in vsc?
best python tutorial on youtube, hands down.
If the check is only in the checked or unchecked state, wouldn't a boolean value make more sense?
I guess its operating as a boolean variable anyway
great but you missed the most important part, a drawing canvas for doing things like drawLine, drawRectangle, drawCircle
Awesome video. Tausend Dank
thank you, clear and useful for beginners
Amazing video, amazing speed
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 ?
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
my self.check_state variable does not change, cannot work out why
second time playing with tkinter, this tutorial is very understandable
Greate video, and we'll explain.
I added one functionality to ask to destroy the root when pressing "Esc".
def end_program(self, event):
if messagebox.askyesno(title = "Quit?", message = "Do you really want to quit?"):
self.root.destroy()
self.root.bind('', self.end_program)
sir i have a question, how to use buttons to visualize the child frames, which is in child frame.
great video, one problem. I'm using visual studio code, but the gui won't open? It says that it has been ran in the terminal but no window has popped up. My code is the exact same as yours
nvm I forgot.mainloop()
It is not teroff, it is combine of casual tear and off
Amazing tutorial!
17:13 part two just getting started!
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
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
the volume is good for me. I have the video and my device less than 30%. Also I am using headphones
thank you so much sir,
Very good vid on tkinter! Very well explained! Fluent and interesting. Absolutely great job!
Fire intro
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?
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
umm im not sure but maybe, you can't 'make' it blue, more like it automatically turns blue when you use the function.
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?
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
Thanks so much for the clear and brief explanations
Es war eine sehr effiziente Lektion für mich. Vielen Dank!
@Lucas Ich finde das auch absolut bodenlos.
Best for revision.
You are a great teacher keep up the good work
Very useful thanks 🙏
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.
It seems useful though
Would be helpful idlf if u could tell us which ide you're using I'm still stuck with vs code on my lightweight pc 16gb ram and Intel core i3 x64 py charm I see now