Python Tkinter Tutorial (Part 1): Getting Started, Elements, Layouts, and Events

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 181

  • @coreyms
    @coreyms  4 місяці тому +85

    This will be the first video in a series of videos covering TKinter. I have some other tutorials in the works as well. I recently added a new "Under Construction" landing page to my website, coreyms.com. I'm rebuilding it completely from scracth and plan to make tutorials out of that entire process from start to finish. I'll be using a mix of different frameworks and also implement an API using FastAPI. Looking forward to getting those recorded and released!

    • @StudiofrogPl
      @StudiofrogPl 4 місяці тому +3

      glad to hear that, for sure i'm gonna buy fastapi course. Good work Corey!

    • @coreyms
      @coreyms  4 місяці тому +12

      @@StudiofrogPl Thanks! And no need to buy. I’ll release it for free for everyone. But people can always support financially through Patreon or UA-cam if they wanna add a tip.

    • @StudiofrogPl
      @StudiofrogPl 4 місяці тому +5

      @@coreyms done sir :) Thank you Corey for your wonderful teaching. You are truly a great teacher.

    • @coreyms
      @coreyms  4 місяці тому +2

      @@StudiofrogPl Wow, thanks so much! I appreciate that!

    • @yyfyyf6829
      @yyfyyf6829 4 місяці тому +2

      @@coreyms Thanks you so much for making high quality videos! It helps me a lot learning python.

  • @theoriginalneckbeard
    @theoriginalneckbeard 4 місяці тому +142

    Hearing Coreys voice is like coming home.

  • @shri4r
    @shri4r 4 місяці тому +17

    Corey Schafer is back! You have no idea how much I've learned from you since 2018. Good to have you back.

  • @Blank271
    @Blank271 4 місяці тому +28

    Corey, you are a fantastic and extremely generous teacher. Thanks so much for all you have done for everyone watching these videos.

    • @dougnyc8324
      @dougnyc8324 4 місяці тому +1

      My sentiments as well!

  • @dev.joshuavarghese
    @dev.joshuavarghese 4 місяці тому +7

    Man, me watching you since I was 15....you are the best SIR !

  • @pascal831
    @pascal831 4 місяці тому +8

    God bless you Prof Corey!
    Always educating us! 🎉

  • @coreycarter5668
    @coreycarter5668 4 місяці тому +19

    Yes! So happy you’re doing this!

  • @tupaiadhikari
    @tupaiadhikari 2 місяці тому +1

    Corey, you are not just a Python Teacher, You are a Cult, you are an Emotion to many of the now Pythonistas who started learning Python between 2015 and 2020 !

  • @codewithluq
    @codewithluq 4 місяці тому +13

    ooh my Corey is back😁😁😋😋😋😋Welcome back

  • @crabvakho
    @crabvakho 4 місяці тому +4

    I've been working with tkinter for some time already but I learnt something new today. thank you and looking forward to pt2

  • @nejhadehyarollahi4735
    @nejhadehyarollahi4735 3 місяці тому +1

    What can you expect from the best tutor in UA-cam?!
    Thank you and thank you again.

  • @harrycrab8725
    @harrycrab8725 3 місяці тому +2

    Others have said it, but I wanted to echo that you have the best examples, clearest explanations, and most succinct tutorials I’ve ever encountered, whether YT, online, books or classroom. Sincere thanks and well wishes!

  • @astrobiological7058
    @astrobiological7058 3 місяці тому +1

    Corey, you've taught me practically everything I know about programing. Early next year I will start my master's in bioinformatics, I owe so much of it to you. Thank you so much!

  • @wilbertraymundrayos4175
    @wilbertraymundrayos4175 Місяць тому

    You are one of the best python teacher on youtube. I hope your tutorial plans continue and become successful

  • @hassaanhameed
    @hassaanhameed 4 місяці тому +1

    Coreys from last1.5 month watching your videos feel confident in django ur teaching style is amazing

  • @nikhilt3755
    @nikhilt3755 4 місяці тому +2

    i literally googled on python ui frameworks and after seeing few videos, i practiced tkinter for 1hr and then saw flet which is cross platform and also nice looking. i am loving flet

    • @coreyms
      @coreyms  4 місяці тому +2

      I may add that to the list of frameworks to cover!

  • @JAVERDO_69
    @JAVERDO_69 4 місяці тому +2

    I'm new into programming and heard many people criticize tkinter that I just test it a little bit and abandon it. But thanks to this I'm gonna use it anyway and hopefully do something useful with it. I like the idea of not having to install a lot of libraries to create something simple. I'm more about the functionality of an app than how it looks. Thanks Corey, keep on the hard work 💪

    • @fromagetriste
      @fromagetriste 4 місяці тому +3

      Moreover, Tkinter is not gonna give you a headache, and will improve your confidence if you're a beginner. I learned it for only one real life project, 0 regret. There are many libraries which you'll learn and use only once but it's never wasted, because you dont know if you're gonna need it again, and it improves your overall Python knowledge

  • @jimbb1832
    @jimbb1832 3 місяці тому +1

    I love your videos. Its like you're answering questions that I didn't know I needed to ask. You're one of the best programming youtubers on the internet.

  • @jerril42
    @jerril42 3 місяці тому +1

    Excellent, thank you Corey. This is something I've wanted to learn for a while, and is much better than any of the turtorials I've tried to follow in the past. Take care.

  • @nusud
    @nusud 3 місяці тому

    Hello Corey... I don't need to learn this, but I will learn it just because you are teaching it!!! You absolutely rock!!!

  • @mrmagoo-778
    @mrmagoo-778 4 місяці тому +2

    What a superb tutorial with lots of clear info to understand what's going on. You really are good at this. The pace is just fine and I learnt a lot. Thank you.

  • @ss4yaasir524
    @ss4yaasir524 4 місяці тому +1

    This came out at the best time for me lol, just had an idea for an app and for the first time id need a gui and look who uploaded a gui tutorial, the man himself! Thank you

  • @DilipKumar-sp9xe
    @DilipKumar-sp9xe 4 місяці тому +1

    The best tkinter tutorial ever seen. Thank you so much

  • @syedmahbubulhuda6762
    @syedmahbubulhuda6762 4 місяці тому +1

    I was hoping to learn tinker and there you go, Corey is back! You are just an excellent teacher..So happy to see you!

  • @name1355_0ne
    @name1355_0ne 4 місяці тому +1

    Great intro to python GUI programming. Please, keep on producing more such videos. Thanks!

  • @mafianoodles
    @mafianoodles 4 місяці тому +1

    Thank you Corin. Why? I am a computer science teacher and I started learning this many years ago and simply gave up. I will teach this to my students this academic year and use your tutorials. Best wishes to you.

  • @amr3162
    @amr3162 4 місяці тому +3

    The king is back

  • @Bushviking
    @Bushviking 4 місяці тому +2

    So glad to see you back doing this Corey.

  • @Matrix_dragon
    @Matrix_dragon 4 місяці тому +2

    Leader of free galaxy has returned 🤩

  • @cybu6466
    @cybu6466 2 місяці тому

    Love the pace, it allows to code myself what you are teaching. You re the best!

  • @FindTheMasterpiece
    @FindTheMasterpiece 3 місяці тому +1

    When I'm learning something new I first check if Corey has a video about it.

  • @seymoreclearly
    @seymoreclearly 2 місяці тому

    The Master Teacher is back!

  • @2000mipo
    @2000mipo 3 місяці тому

    So happy you’re back! I remember watching your videos when I was in high school and learning so much from them, thank you so much for teaching me how to code as well as how to go with good practices is really help me in my journey. I now constantly recommend your videos to my juniors in school and university and they too have learnt a lot from it! Can’t wait for a lot more videos from you❤

  • @thetruereality2
    @thetruereality2 4 місяці тому +1

    Welcome back, Corey! Thank you for another amazing piece

  • @nzuckman
    @nzuckman 4 місяці тому +1

    Thank you Corey, I struggled so much figuring out tkinter by myself

  • @josejaimecome
    @josejaimecome 12 днів тому +1

    Clear and Concise

  • @adamkhattak5905
    @adamkhattak5905 4 місяці тому +1

    wow this couldn't have come at a better time thank you very much!

  • @anassbennani4602
    @anassbennani4602 4 місяці тому +1

    Finally!.🎉 I was really waiting for a gui lesson from you Corey. Yes if you could do other guis too. Many thanks.

  • @jaysonkurtyka6186
    @jaysonkurtyka6186 3 місяці тому +1

    Thank you very much @coreyms to creating these tutorials, it is very much appreciated as you are very thorough and explain things very well!

  • @bowenwang
    @bowenwang 4 місяці тому

    Finally, a new video. The best Python teacher is back

  • @jayeshsingh116
    @jayeshsingh116 4 місяці тому

    good to see you back sir
    you python tutorials are a blessing

  • @arbersharber
    @arbersharber 3 місяці тому

    This is brilliant, so well explained. Looking forward to watching your other videos! Thanks

  • @ashketchum4953
    @ashketchum4953 4 місяці тому +1

    This is great. I'm looking forward to the next parts.

  • @arjunabirdseyefocus9557
    @arjunabirdseyefocus9557 3 місяці тому

    Thanks for coming back Corey

  • @vizonex4316
    @vizonex4316 3 місяці тому

    Glad to see that your back and doing well.

  • @JoseLuisMorales
    @JoseLuisMorales 4 місяці тому +1

    🎉 Corey thanks for coming back

  • @in_ashish
    @in_ashish 4 місяці тому +1

    Welcome back, Corey! Looking forward to learning from you :)

  • @cboniefbr
    @cboniefbr 4 місяці тому +1

    Thanks Corey for always bringing great stuff!

  • @andresrestrepo5210
    @andresrestrepo5210 4 місяці тому

    Corey The Legend Is Back!

  • @varunshrivastava2706
    @varunshrivastava2706 4 місяці тому +1

    Been watching your videos since college freshman year. Please post more often. Also we would really appreciate if you could make a video related to python open source projects.and how to contribute to them!!!

  • @AmoahDevLabs
    @AmoahDevLabs 4 місяці тому +1

    It's really great to have this from you. Thanks very much.

  • @khidhrhalab3543
    @khidhrhalab3543 3 місяці тому

    The legend is back!🎉🎉

  • @yassir-muhammad
    @yassir-muhammad 4 місяці тому +2

    Thanks... I've been waiting for these...

  • @TheAremoh
    @TheAremoh 4 місяці тому +1

    Hearing the voice alone is golden.

  • @TheTwierdzenie
    @TheTwierdzenie 4 місяці тому

    Suddenly i want to learn tkinter framework:). Welcome back Corey...

  • @SkyFly19853
    @SkyFly19853 4 місяці тому +1

    Thank you very much for making these useful videos.
    Thank you.

  • @patrickshepherd1341
    @patrickshepherd1341 4 місяці тому +1

    Just a bit of advice (you might already be planning this) but i would do the switch to classes AS SOON AS POSSIBLE. I say this because i learned tkinter from scratch the hard way, and when i realized how much trouble callbacks were to implement with arguments, it was a PAIN to go back and refractor everything.
    If it were me, I'd probably show how callbacks work in the next episode and make the case for the switch to classes, then do that in the video after.
    Lol feel free to do it however you want, but i REALLY wish i had done that when i was learning. All the stack overflow examples use classes as well, so it would alleviate the translate-from-classes step people will be trying to do when they go there for extra help between videos.

    • @coreyms
      @coreyms  4 місяці тому

      Yep, that's the next video! Definitely important.

  • @lhcunha1
    @lhcunha1 3 місяці тому

    Hey corey. Man I just discovered your channel and your lessons are amazing. At work I needed your help with classes and generators. And now I need to build a website for my wife's businesses and I think I'm goingo to use this tutorial, because python is the only lang I know and I dont have time to learn html,css and js. Thanks man!!

    • @lhcunha1
      @lhcunha1 3 місяці тому

      Edit: just figured that actually tkinter is not designed for web development. Which of you courses you suggest for this purpose?

    • @harrycrab8725
      @harrycrab8725 3 місяці тому

      @@lhcunha1 if you don’t know and don’t want to learn html, css, and js, I recommend starting out with a low code/no code website creator option like squarespace, et. al. They have drag-n-drop widgets with lots of built in customization options. You could go a long way before you’d have to code anything, at least for simple shopping cart type businesses. Good luck!

    • @coreyms
      @coreyms  3 місяці тому +1

      If you want it done quickly and have it looking sharp without needing to learn HTML/CSS, then sites like Squarespace are probably your best bet. But if you do want your own custom option and build it yourself, then I'd say going with Flask or Django is your best bet. They're both Python on the backend, but there's no getting around needing to know a little HTML/CSS for the front-end. There are many CSS stylesheets out there these days that help make just about any site look good though. I have a series for both Flask and Django if you're interested, but like I said, if you want it up running quickly and looking good then there's no shame in going with a service like Squaresqace!

    • @lhcunha1
      @lhcunha1 3 місяці тому +1

      @coreyms yes..that's what I thought. I will stick with the services like hostinger and elementor. And keep practicing python in other areas as I'm already doing. Thanks man!

  • @dmbrv
    @dmbrv 3 місяці тому +1

    Awesome. please continue.

  • @mahmoudabdelsattar8860
    @mahmoudabdelsattar8860 4 місяці тому +1

    Just WOW
    very nice
    keep it up more and more

  • @benarcher372
    @benarcher372 4 місяці тому +2

    Cool. Long time no see. Welcome back 🙂

  • @Analton
    @Analton 4 місяці тому

    The king is back!

  • @desisicario260
    @desisicario260 4 місяці тому

    Nice to see you back sir

  • @WaldoTheWombat
    @WaldoTheWombat 4 місяці тому

    Good to have you back Corey, but nobody uses Python to write GUIs

  • @yourself770
    @yourself770 4 місяці тому +1

    welcome back brother 🎉

  • @shantgevorkian7277
    @shantgevorkian7277 3 місяці тому

    Wonderful as always!!

  • @RatoCanguru_Lucas
    @RatoCanguru_Lucas 3 місяці тому +1

    you are amazing, man, thanks!

  • @parosdelos6914
    @parosdelos6914 4 місяці тому

    The legend is back :)

  • @sinecurve9999
    @sinecurve9999 4 місяці тому

    Welcome back, Corey!

  • @davidkoo2503
    @davidkoo2503 4 місяці тому

    This guy!!!! Welcome back

  • @biscotty6669
    @biscotty6669 4 місяці тому +1

    Very enjoyable, thank you.

  • @ivolol
    @ivolol 3 місяці тому

    Sentdex did a great tutorial on tkinter in the past, it was super great because it went past "toy" examples to actually develop a more in-depth and organised framework for a more complex GUI application, with tabs and menus and such. "Toy" tutorials on starting a Tkinter python app are a dime a dozen; explaining techniques for creating one that's... something more are a rarity. I hope maybe you are able to use it as inspiration or even improve on it for the future.

    • @coreyms
      @coreyms  3 місяці тому

      Sentdex does great work! I’ll be covering some real-world example apps as well, but he’s always a great resource!

  • @TNTy100
    @TNTy100 2 місяці тому

    Amazing video, it helps a lot. Thank you!!!

  • @kingmenka2085
    @kingmenka2085 3 місяці тому

    salute....sir corey very clear video...

  • @NickMirsepassi
    @NickMirsepassi 4 місяці тому

    King is back 🎉

  • @אוריאביחיל-ש9ח
    @אוריאביחיל-ש9ח 3 місяці тому

    Hey corey, i would like you to teach us about microsoft or linux or networks, something more funedemental but important.
    And i would like to thank you for all the effort you invest in order to teach complicated topics in an explicit way!!!

  • @mehdicherifi6289
    @mehdicherifi6289 4 місяці тому

    Always pleasure to watch your videos🎉 please I love to see some videos on pytest

  • @najeebali240
    @najeebali240 3 місяці тому +1

    Thank you so much Corey

  • @crazylegs85
    @crazylegs85 4 місяці тому

    This is great!
    Can't wait for the portions where everything is divided into classes.
    My main gripe with tkinter was that you couldn't escape the event loop from it so i had to build the functionality inside of the UI itself. Eww. Makes it worse when you have to call other software that is long running and you have to display its output. Separate functionality makes it easier to test.

  • @BLhackHat
    @BLhackHat 3 місяці тому

    Welcome back ser

  • @Noritoshi-r8m
    @Noritoshi-r8m 4 місяці тому +1

    Omg new Coreyms tutorial hi Corey :D

  • @AyandaLatsha-l1k
    @AyandaLatsha-l1k Місяць тому

    Thank you for this tutorial 💯🙏

  • @majestif
    @majestif 4 місяці тому +1

    The Legend!

  • @ali-ahmed29
    @ali-ahmed29 4 місяці тому

    Welcome back ❤️❤️❤

  • @MsDev5
    @MsDev5 4 місяці тому +9

    So the best Tkinter course is going to drop

  • @vasanthv3585
    @vasanthv3585 4 місяці тому

    Thalaiva💥🙏

  • @SorinOltean77
    @SorinOltean77 4 місяці тому +1

    Yeey the king is back! Time to dust off the python env and learn something new.

  • @EftychiosKaravasilis
    @EftychiosKaravasilis 4 місяці тому

    This looks great. Its compatible with mojo i take it

  • @jslacasa
    @jslacasa 4 місяці тому

    Amazing!

  • @growwhub5
    @growwhub5 4 місяці тому

    Guess who's backkk!!!!!!!

  • @WhalesLoveSmash
    @WhalesLoveSmash 3 місяці тому +2

    When you add the second frame the first frame will lose its functionality of adding to its list.
    You can fix this by making sure everything in the second frame uses different variables, also since the add_to_list() function doesn't have any parameters you need to implement an add_to_list2() function.

    • @coreyms
      @coreyms  3 місяці тому +1

      Just released a follow up video addressing this

  • @hariteshchauhan9241
    @hariteshchauhan9241 3 місяці тому +1

    How do you do this Corey? Whenever i need help with a topic, you make video on that same topic.
    Thankyou

  • @anelm.5127
    @anelm.5127 3 місяці тому

    You really need to do a video on advanced testing, mocking, patching

  • @emmang2010
    @emmang2010 4 місяці тому +1

    amazing

  • @mecrayavcin
    @mecrayavcin 4 місяці тому +1

    I love you so much.
    I've checked your Django playlist which was created 5 years ago.
    Is it still relevant in 2024?
    Thanks

    • @coreyms
      @coreyms  4 місяці тому +1

      @@mecrayavcin Most of it is, but there may have been a few updates. I’m going to revisit that course soon and release another, but it may be several months

    • @Cubin4ik
      @Cubin4ik 4 місяці тому

      ​@@coreyms I watched the whole series and I wouldn't mind watching an updated one again. :)

  • @s.baskaravishnu22
    @s.baskaravishnu22 Місяць тому

    Many thanks

  • @karag4487
    @karag4487 4 місяці тому

    Please make more of these

  • @AlfredXavierCT
    @AlfredXavierCT 2 місяці тому +1

    Can you do one for Django rest framework and/or for react like one u did for django and flask.

  • @waelfathy2199
    @waelfathy2199 4 місяці тому +1

    Amazing
    Please could you create tutorial for fastapi

    • @coreyms
      @coreyms  4 місяці тому +2

      @@waelfathy2199 Yep! Have one in the works!

  • @Cubin4ik
    @Cubin4ik 4 місяці тому

    I used to start my entire carrier many years ago watching all of your python videos. This approach has a downside: now I'm not able to move any further without you explaining me new frameworks and libraries. So are there any plans for FastAPI and Pydantic? 😂

    • @coreyms
      @coreyms  4 місяці тому +1

      Yes! I'm working on some very soon. I'll keep you all updated on the progress.

    • @Cubin4ik
      @Cubin4ik 3 місяці тому

      @@coreyms Great! Looking forward to see that!