Tkinter Beginner Course - Python GUI Development

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025

Комментарии • 359

  • @Dominator046
    @Dominator046 Год назад +18

    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.

  • @jessicaabroad1391
    @jessicaabroad1391 9 месяцев назад +89

    5:38 - Adding text box
    7:50 - Making entry
    8:41 - Making a button
    10:24 - Grid of buttons (buttonframe)

  • @chorltondragon
    @chorltondragon 10 месяцев назад +23

    Excellent video. No fluff. Totally clear and easy to build from. This was exactly what I needed. Thanks!

  • @Dominator046
    @Dominator046 6 месяцев назад +13

    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 2 года назад +144

    You may be the best teacher on youtube. Thanks for keeping it simple, clean and focused on the most important topics.

  • @cmrncrick
    @cmrncrick Год назад +28

    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.

  • @chuckbenedict7235
    @chuckbenedict7235 Год назад +16

    Rapid fire. Clear. No bull. Great intro to Tkinter. Thanks!

  • @PhoenixSunshin
    @PhoenixSunshin Год назад +4

    want to say thank you so much for all this training!!! it surely helped me with tkinter self-training🖐

  • @williamvanniekerk408
    @williamvanniekerk408 9 месяцев назад +2

    Thank you very much for an excellent introduction to the tkinter module. This was absolutely spot-on. 🙏

  • @janikpanic
    @janikpanic 7 месяцев назад

    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.

  • @shaunakwasker20
    @shaunakwasker20 4 месяца назад

    I loved this video as a Python beginner! Thank you for making such a clear and concise tutorial.

  • @GOODBOY-vt1cf
    @GOODBOY-vt1cf 3 месяца назад +6

    9:47 here
    2:57 geometry
    3:36 title
    4:50 Label
    5:55 pack
    6:18 Text
    7:56 Entry
    8:54 Button

  • @mehanik4
    @mehanik4 Год назад +4

    Really nice video, straight to the point and easy to follow.

  • @aikiwolfie
    @aikiwolfie Год назад +1

    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.

  • @arnavmeena525
    @arnavmeena525 3 года назад +77

    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 года назад +9

      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 года назад +3

      @@yusiferzendric1489 You can think whatever you want to 😃.

    • @arnavmeena525
      @arnavmeena525 3 года назад +2

      @@yusiferzendric7600 Cool

    • @arnavmeena525
      @arnavmeena525 3 года назад +5

      @@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.

    • @vali69
      @vali69 Год назад

      ​@@arnavmeena52587*

  • @jrgomez
    @jrgomez Месяц назад +1

    Best GUI tutorial ever! Thanks.

  • @abdullahhaidary149
    @abdullahhaidary149 8 месяцев назад +1

    Your explanation was very clear and simple
    Keep the good work up!

  • @beatroch
    @beatroch 2 года назад +7

    You're such a good man, for sharing all your knowledge about Tkinter. Thank you so much.

  • @ComradeMuffin.
    @ComradeMuffin. Год назад +5

    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

  • @jongalloway4104
    @jongalloway4104 3 года назад +31

    Such clear and concise teaching! Thank you so much! I love watching your videos.

  • @mjpthetrucker9485
    @mjpthetrucker9485 3 месяца назад

    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.

  • @kevinmerrell9952
    @kevinmerrell9952 7 месяцев назад +1

    Good stuff. I plan on making a GUI alarm clock using Python.

  • @tonymakdissy3507
    @tonymakdissy3507 Год назад +4

    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

  • @trustmaramba86
    @trustmaramba86 Год назад +4

    Best tutorial i have had so far on Tkinter, very informative and well presented.

    • @rayyan_060
      @rayyan_060 Год назад +2

      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

  • @zetho.270
    @zetho.270 5 месяцев назад +6

    never thought that sneako would be teaching me tkinter

    • @badaim4850
      @badaim4850 4 месяца назад

      Sneako is a stick compared to him but i see the resemblance lol

    • @Kelle128
      @Kelle128 Месяц назад

      Sneako knows absolutely nothing about programming lol

  • @kavehnematipour
    @kavehnematipour 5 месяцев назад

    Good video. Proper speed, Useful information. No ado.

  • @mai_hu_shinchan_nohara01
    @mai_hu_shinchan_nohara01 6 месяцев назад

    finally i found the perfect one for beginners, pretty much understandable 🎉🎉🎉

  • @alleged_STINK
    @alleged_STINK 11 месяцев назад

    great introduction, got a lot to work with and branch off from now. thanks!

  • @annabandana9889
    @annabandana9889 Год назад +3

    This was excellent and much better than my Python teacher!! I am definitely going to check out all of your video and tutorial series.

  • @S24W2
    @S24W2 Год назад +1

    This is what most RUclips videos lack- clarity! Thank you so much, new sub 👍

  • @Samsul2013
    @Samsul2013 Год назад

    Thank you for this video. I enjoy learning tkinter with the help of your teaching skills

  • @GeraldBosley-cf8ng
    @GeraldBosley-cf8ng Год назад

    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.

  • @Overlycomplicatedswede
    @Overlycomplicatedswede 9 месяцев назад

    Thank you for this guide very easy to understand and follow and straight to the point

  • @luvsk-rg2xq
    @luvsk-rg2xq Год назад

    14:03 absolutely the main reason why i do the sticky stuff.

  • @xoxogamewolf7585
    @xoxogamewolf7585 Год назад +2

    Arial isn't actually a font in tkinter, its just not recognizing the font your inputting and defaulting to Helvetica.

  • @daveys
    @daveys Год назад

    Nice examples of some of the basic things you can use tkinter for.

  • @Ente64
    @Ente64 Год назад +2

    Thanks for taking the time of doing this. We really appreciate the knowledge you're sharing.

  • @sherlokie2000
    @sherlokie2000 11 месяцев назад

    Thank you, very useful for my first tkinter script!

  • @PA-bu5cs
    @PA-bu5cs Год назад

    Very nice - I ike that you do no stress things like many youtubers do :)

  • @mmluv
    @mmluv Год назад +1

    Excellent tutorial. you gotta be the best instructor on RUclips! great 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

  • @timmytimlinson
    @timmytimlinson Год назад

    Great video! Also, since you asked, it's pronounced "tair off" as in tearing a piece of paper.

  • @josephdaquila2479
    @josephdaquila2479 11 месяцев назад

    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

  • @QuransGems-zd1jd
    @QuransGems-zd1jd 7 месяцев назад

    I think choosing the class way of doing it all just made it more complex.

  • @twi4458
    @twi4458 Год назад

    Awesome course, most imp thing, uou taught how to do it by own

  • @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

  • @icarofreire5079
    @icarofreire5079 2 года назад +4

    Clear thought process and right to the point. Thanks

  • @germanbrunini5204
    @germanbrunini5204 Год назад +1

    I've been wanting to learn GUI stuff for a while! thanks for this materials! subscription granted! cheers from Argentina!

  • @ayuzshh
    @ayuzshh Год назад +1

    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

  • @orvilleredenpiller338
    @orvilleredenpiller338 10 месяцев назад +1

    You: And here is how simply and concisely you can do that easily.
    Me: OHHHHHH, BUUUUUUTTTTOOOOOONS. 😊

  • @ronnielane6903
    @ronnielane6903 Месяц назад

    Great tutorial, thanks man!

  • @ritikmehra500
    @ritikmehra500 3 года назад +1

    Damn this is all i was waiting for😍

  • @yourbigfan1777
    @yourbigfan1777 Год назад

    Awesome tutorial! Making my own calculator right now!

  • @suryakamalnd9888
    @suryakamalnd9888 10 месяцев назад +1

    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 10 месяцев назад

      Nah, i can name it as anything, you just have to put it in a separate folder from other things.

  • @DavidCampbellFilms
    @DavidCampbellFilms 2 года назад +6

    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.

  • @kaushiki.sharma
    @kaushiki.sharma 7 месяцев назад

    You made it really simple ! Thanksss

  • @IAmNotVerified
    @IAmNotVerified Год назад +3

    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

  • @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.

  • @hello_world1221
    @hello_world1221 Год назад

    Thanks for the great content. I really appreciate that. It is very easy to understand.

  • @justinianpintilie5999
    @justinianpintilie5999 Год назад +3

    The tutorial was so useful, thank you! Congrats!

  • @a9ocalypse
    @a9ocalypse 2 месяца назад

    Personal Note:
    Finished at: 26:49

  • @hariniharini2624
    @hariniharini2624 9 месяцев назад

    ur really an awesome teacher

  • @user-qy6xr2ju4i
    @user-qy6xr2ju4i Год назад +1

    This is AWESOME!!! Thank you for sharing!! This has given me much more confidence in creating my projects

  • @davetech1
    @davetech1 Год назад

    Can you make a video explaining all the keywords you used

  • @DanPlumbley
    @DanPlumbley Год назад +2

    Great video - really clear explanation, very well structured. Perfect introduction to TKInter

  • @joanadewusi3771
    @joanadewusi3771 Год назад +1

    Finally , what I learnt in my course isn't so confusing.

  • @robynrox
    @robynrox 6 месяцев назад

    Excellent, thank you!

  • @2684dennis
    @2684dennis 3 месяца назад

    how did you set up this enviroment, downloadying python, and what else? can you work on python in vsc?

  • @RetroEcoChicken
    @RetroEcoChicken Год назад

    best python tutorial on youtube, hands down.

  • @josephdaquila2479
    @josephdaquila2479 11 месяцев назад

    If the check is only in the checked or unchecked state, wouldn't a boolean value make more sense?

    • @josephdaquila2479
      @josephdaquila2479 11 месяцев назад

      I guess its operating as a boolean variable anyway

  • @wburris2007
    @wburris2007 9 месяцев назад

    great but you missed the most important part, a drawing canvas for doing things like drawLine, drawRectangle, drawCircle

  • @naderbazyari2
    @naderbazyari2 2 года назад

    Awesome video. Tausend Dank

  • @gaborkoczian9065
    @gaborkoczian9065 Год назад +1

    thank you, clear and useful for beginners

  • @Hawk_R6
    @Hawk_R6 2 года назад

    Amazing video, amazing speed

  • @SilatSkiller
    @SilatSkiller 7 месяцев назад

    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 ?

  • @rayyan_060
    @rayyan_060 Год назад +1

    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

  • @RJ-dq7ue
    @RJ-dq7ue 2 года назад +2

    my self.check_state variable does not change, cannot work out why

  • @nocturnalcook
    @nocturnalcook 2 года назад

    second time playing with tkinter, this tutorial is very understandable

  • @kansiimegracie542
    @kansiimegracie542 Год назад

    Greate video, and we'll explain.

  • @iSven
    @iSven Год назад

    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)

  • @tehseenbaig3198
    @tehseenbaig3198 Год назад

    sir i have a question, how to use buttons to visualize the child frames, which is in child frame.

  • @SweetStickmann
    @SweetStickmann 6 месяцев назад

    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

  • @RefiaNur
    @RefiaNur Год назад

    It is not teroff, it is combine of casual tear and off

  • @iSven
    @iSven Год назад

    Amazing tutorial!

  • @QuransGems-zd1jd
    @QuransGems-zd1jd 7 месяцев назад

    17:13 part two just getting started!

  • @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

  • @tymek200101
    @tymek200101 Год назад +1

    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 Год назад

      the volume is good for me. I have the video and my device less than 30%. Also I am using headphones

  • @ektarayamale6213
    @ektarayamale6213 3 месяца назад

    thank you so much sir,

  • @MrFlanker1980
    @MrFlanker1980 Год назад

    Very good vid on tkinter! Very well explained! Fluent and interesting. Absolutely great job!

  • @Dream22121
    @Dream22121 6 месяцев назад

    Fire intro

  • @SofinasTeame
    @SofinasTeame Год назад

    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?

  • @hunterreehoorn7831
    @hunterreehoorn7831 Год назад +1

    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 11 месяцев назад

      umm im not sure but maybe, you can't 'make' it blue, more like it automatically turns blue when you use the function.

  • @roadchewerpe5759
    @roadchewerpe5759 11 месяцев назад

    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?

  • @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

  • @davidmahmud172
    @davidmahmud172 2 года назад +1

    Thanks so much for the clear and brief explanations

  • @vegaripkont792
    @vegaripkont792 3 года назад

    Es war eine sehr effiziente Lektion für mich. Vielen Dank!

    • @taggerinto.o
      @taggerinto.o 2 года назад

      @Lucas Ich finde das auch absolut bodenlos.

  • @jinkhan1407
    @jinkhan1407 2 года назад

    Best for revision.

  • @rayyoudontneedtoknow6887
    @rayyoudontneedtoknow6887 Год назад

    You are a great teacher keep up the good work

  • @Ethiopia_
    @Ethiopia_ Год назад

    Very useful thanks 🙏

  • @mikhailwebb8377
    @mikhailwebb8377 Год назад +2

    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.

  • @ronycb7168
    @ronycb7168 2 года назад

    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