Desktop GUI App With Python & Tkinter

Поделиться
HTML-код
  • Опубликовано: 29 июн 2024
  • In this video we will build a CRUD GUI app with Python, the Tkinter library and Sqlite3
    Sponsor: Linode Cloud Hosting
    Get $20 Free by visiting www.linode.com/traversy
    Code:
    github.com/bradtraversy/part_...
    💖 Become a Patron: Show support & get perks!
    / traversymedia
    Website & Udemy Course Links:
    www.traversymedia.com
    Follow Traversy Media:
    / traversymedia
    / traversymedia
    / traversymedia
    Resources:
    I first learned about Tkinter from this great Udemy course so I want to give him credit:
    www.udemy.com/course/the-pyth...
  • НаукаНаука

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

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

    I have just recently picked up Python after 25 years off "coding". My coding experience gave me the foundation but struggling with integrating Tkinter into my python code. This video has provided a serious 'enlightment' for one that has been 'lost' for 25 years from coding.
    Next, I am going to search for a similar Django video -- which I could not wrap my head around very well.
    Bravo and thank you, Brad

  • @ProgrammingwithPeter
    @ProgrammingwithPeter 4 года назад +44

    This is super useful for beginners! Great job Brad!

  • @CTcuber4K
    @CTcuber4K 4 года назад +27

    Me: a desktop gee-you-eye application
    Brad: a gooey application

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

      That's how its referred to in the industry, so at least he's accurate, neither are wrong, though, you get funny looks when you say it your way occasionally nobody is going to say anything really.

  • @SpiritualFacts
    @SpiritualFacts 4 года назад +52

    Finally Brad Stepping Into Desktop!!

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

    This is a great code-along. It's a perfect starter for anyone like myself who wants to add a GUI to their python code and could use a quick starter. Giving it CRUD functionality with SQL is also helpful. Many thanks for this!

  • @geekgod9320
    @geekgod9320 4 года назад

    This is a really good tutorial to understand tkinter along with CRUD operations. Loved it totally! Hope to watch more videos on various fields!! Thank you so much once again...

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

    Loved it Brad. Keep doing desktop development tutorials :)

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

    This is the best tutorial I have ever taken. Thank you for sharing it.

  • @TraversyMedia
    @TraversyMedia  4 года назад +66

    What other languages/technologies would you guys like me to look into for desktop apps? I want to do some stuff beyond web dev

    • @rakshiths.n9680
      @rakshiths.n9680 4 года назад +35

      Electron.js

    • @TraversyMedia
      @TraversyMedia  4 года назад +35

      @@rakshiths.n9680 Love Electron, I have a few small projects but I want to do something bigger, maybe a full course or series

    • @ashishkpoudel
      @ashishkpoudel 4 года назад +8

      Python and GTK

    • @MULTICODE
      @MULTICODE 4 года назад

      Laravel ? Can we do a desktops app with it ?

    • @MULTICODE
      @MULTICODE 4 года назад +1

      What about angular ?

  • @bankoleesan2129
    @bankoleesan2129 4 года назад

    Brad makes me so happy... Gave a colleague of mine at work a link to this RUclips channel, he's subscribed now... I could hear Brad's voice from his cubicle, lol... I got so excited hahahaha 😄
    You're the man Brad, always. Your love for coding and building things is unmatched!
    That being said, you know one thing that would make my life complete? If you had your courses on Pluralsight. I am aware that Udemy has been giving problems lately, and I feel like a platform like Pluralsight would be just perfect for you sir. Plus you'd be a favorite almost instantly, and your projects and interactive courses would be the bomb. Although I fear that Mr Traversy has too much "Soul" for pluralsight (which is actually part of why we all love you sir).

  • @frikkievandermerwe
    @frikkievandermerwe 4 года назад +6

    I am currently working through your Django Udemy course, well done! Thanks for your awesome work man! This is a great Tkinter tutorial as well. Love your explanations in the initial setups as it helps us understand how to think about projects. Keep it up! On which course next: something like Electron (or better alternative) to create desktop apps using the web tech we already know.

  • @riverlance9647
    @riverlance9647 3 года назад +9

    those who are getting error while installing tkinter and tkmessagebox in windows , the module is already installed along with the python setup (python 3.9) and tkmessagebox is a part of tkinter , so no need to install seperately
    go in cmd(command terminal) and type == "python -m tkinter --version"

  • @RTW590
    @RTW590 4 года назад +1

    Yay this is awesome! Thank you. ❤️ From a patron 😀

  • @Puns7733
    @Puns7733 4 года назад +1

    Amazing Tutorial. Best a newbee can have it. Thanks Brad!!!!

  • @marektalpak4315
    @marektalpak4315 4 года назад +1

    Thank you, Brad! This video gave more understanding than the Python course a have taken. Small, but useful app. Very good starting point.

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

      ruclips.net/video/CEc77MQFzhk/видео.html&ab_channel=TheCodeLearner

  • @dimitrisandroid6483
    @dimitrisandroid6483 4 года назад

    Thank you a lot Brad!
    This was what I was looking for!
    I want to create a small and low cost erp for a small business working in desktop and offline.
    Now I need to find out how to create templete for the invoices ( custom fields, columns etc) and print them via my program.

  • @roberti8506
    @roberti8506 4 года назад +4

    Hello from Russia. I work as a manager in a trading company. Thank you very much, based on your video, I created my own small project that helps me to fix customer orders. This is a magical feeling when you want something for a long time and you get it - it’s worth a lot and thank you again for that!
    If anyone is interested, I can share a link to the git repository.

  • @ryannicholson5240
    @ryannicholson5240 4 года назад +1

    Another gold nugget from Brad. Thanks a lot for the continuous work in making our lives better. Could you please do a tutorial on how to make price calculator for web services using Javascript. It should be like a multi-step form where users can select items and the price shows up on the next stage of the form until the form is ended.

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

    Brad, your teaching style is superb! Very easy to understand and follow for a complete Noob to Python and Tkinter. I am trying to find a GUI solution for the Raspberry Pi and so far, it seem Python and Tkinter are the best solution.

  • @ezcomezgo11
    @ezcomezgo11 4 года назад

    I'm a beginner in python 3. Very helpful. Thanks. Keep up the good work. :)

  • @DRocksRecords
    @DRocksRecords 4 года назад +5

    That was really easy compared to other tutorials I've watched and also I like that we went from zero to executable file. Really nice to use sqlite for the first time too.
    good job, I hope you get cheers for your work.
    Alex.

    • @1bmxam
      @1bmxam 4 года назад

      D Rocks Records tHAnkS AleEeeeXxx

  • @sangamadhikari8497
    @sangamadhikari8497 4 года назад +3

    I love how you use VS Code for every single projects you do. Been a fan of VS Code looking at your youtube video, Nice one Brad.

  • @derekknight7496
    @derekknight7496 4 года назад

    Thanks Brad making a obd dashboard for my car and this is super helpful.

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

    Just what I was looking for. Thanks a lot Brad

  • @py-acad4721
    @py-acad4721 3 года назад

    great job, your tutorials have been very helpful . i rate you one of the best

  • @davidbrown2806
    @davidbrown2806 4 года назад +1

    Good content. The OOP approach to creating a database is excellent. Would have been interesting to see clicking one of the CRUD buttons creating another window. Nice to see that you don't need Django or Flask to do this stuff.

  • @itzikgutzcha4779
    @itzikgutzcha4779 4 года назад

    Thank you, I learned a lot. I liked how you handled the "out of range" error. This happens when you delete an entry but retain its' index in the "selected_item" variable, you could have also reset the "selected_item" variable whenever you deleted something.

  • @stevendornan7979
    @stevendornan7979 4 года назад +5

    Oh this made my day, thank you so much

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

      ruclips.net/video/CEc77MQFzhk/видео.html&ab_channel=TheCodeLearner

  • @DailyIntern
    @DailyIntern 4 года назад

    Brad know this, he explain clearly and you get what he said exactly.

  • @georgehammond867
    @georgehammond867 4 года назад +1

    Nice one..you hit 900-K subs congratulations Traversy Media. :)

  • @Rob-cq1nf
    @Rob-cq1nf 4 года назад +13

    Nice! Pease more Python and Gui content^^

  • @naungsai
    @naungsai 4 года назад

    Thank you very much. It helps me a lot to start learning python. Hope to see more such project.

  • @nodeseekho4976
    @nodeseekho4976 4 года назад

    Hello Sir... i have learnt alot from you Node.js Api Master Class. Really amazing ! Hats off to you. Every single line of code you just described in very professional way. Bravo !!
    Thanks alot :)

  • @anoundhim4393
    @anoundhim4393 4 года назад

    i already purcase your udemy course about nodejs, express & mongo THAT'S AWESOME to the point and really really best way WAITING FOR ANOTHER COURSE

  • @co850
    @co850 4 года назад

    This is so great! Thanks for putting this tutorial together.

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

      ruclips.net/video/CEc77MQFzhk/видео.html&ab_channel=TheCodeLearner

  • @MyName-fr3nf
    @MyName-fr3nf 4 года назад

    Appreciate your work Brad!

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

    Thanks Brad very clear explanation as always. It would be great to do more videos on tkinter, for instance creating buttons to open up more windows. Stay blessed.

  • @johankotze42
    @johankotze42 4 года назад

    Thanks. This helped a lot to get me comfortable in Guis. I could not (yet) get the scroll bar to appear like yours, but it is there and it is working. I suspect I have some library version issues, but I'll check into that

  • @tylerdurden7334
    @tylerdurden7334 4 года назад +1

    Legend! thank you so much for the hard work you put in :). can you please do a video series on how to use mysql+nodejs properly in a rest api context?

  • @paulburkart3575
    @paulburkart3575 4 года назад +3

    I'd love to see more GUI Development Videos from you. Maybe next you could look into Kivy?

  • @davebudah
    @davebudah 4 года назад

    Just in time. Thanks Brad.

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

      ruclips.net/video/CEc77MQFzhk/видео.html&ab_channel=TheCodeLearner

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

    Great tutorial! great way of showing things!

  • @DrSamerKantakji
    @DrSamerKantakji 4 года назад

    Many thanks Keith, really it is very assistance to me after letting programming more than 10 years.. I expect to begin my activity strongly..

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

    ah... very good and and very easy to pratice with your explaining.... thank you very much sir... continue♥♥

  • @nguyencanh1651
    @nguyencanh1651 4 года назад

    Great Traversy Media. Thanks for tutorial.

  • @kamikaze_jb
    @kamikaze_jb 4 года назад

    Thanks, we needed that!

  •  3 года назад

    Thanks for sharing! It works great!

  • @dilshanchrishantha6548
    @dilshanchrishantha6548 4 года назад +1

    a clear demonstration of GUI with python and Tkinter

  • @purplev2791
    @purplev2791 4 года назад

    The only other recommendable Tkinter video I've seen was from thenewboston, which was a bit outdated...so thank you very much! =)

  • @abdalrahman3624
    @abdalrahman3624 4 года назад

    Please can u provide more on this, and thanks a lot, if u know really i benefit alot from your videos, thanks bro 😍😍😍

  • @kabir73722
    @kabir73722 4 года назад

    You are really amazing teacher thanks a lot.

  • @KaJluHuHrpag
    @KaJluHuHrpag 4 года назад +1

    Thank you, Bro! Good job:0)

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

      ruclips.net/video/CEc77MQFzhk/видео.html&ab_channel=TheCodeLearner

  • @augedoo8409
    @augedoo8409 4 года назад +4

    Java thought by you will be a dream come true for me. I've been doing Java and android dev for a while but i changed to web dev because of the way you teach it. You are fantastic.

    • @MeldzhaParastais
      @MeldzhaParastais 4 года назад +1

      The same here. Was learning Java and switched to HTML/CSS/JS/NodeJS

    • @augedoo8409
      @augedoo8409 4 года назад +1

      Cool. Am now doing Brad's frontend courses on Udemy. Seriously he's an amazing teacher. I never struggle to understand anything. Some advanced CSS stuff can be treaky sometimes, but with a lil practice, am good. I plan on taking all of his courses. Maybe we could collaborate on a project when I advance a lil in this tech space.

    • @MeldzhaParastais
      @MeldzhaParastais 4 года назад +1

      @@augedoo8409 yes, we could. It is exactly what I am looking for. A programming buddy. That would be cool. PM ?

    • @MeldzhaParastais
      @MeldzhaParastais 4 года назад

      @@augedoo8409 do you have a discord?

    • @augedoo8409
      @augedoo8409 4 года назад

      @@MeldzhaParastais I don't own any but am on other community discord servers. Do you?

  • @ANONYMOUS-qx4yx
    @ANONYMOUS-qx4yx 4 года назад

    Good job brad

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

    thank you very much for this tutorial it was really usefull

  • @cursoderobotica
    @cursoderobotica 4 года назад

    I like it!!! awesome thank you

  • @raphaeljaggerd3585
    @raphaeljaggerd3585 4 года назад

    This guy is a programming god

  • @Mjuziks
    @Mjuziks 4 года назад

    Good Job! Thanks a lot :)

  • @GreatAdib
    @GreatAdib 4 года назад

    Amazing tutorial as always Brad . Please as I your long time subscriber I suggest you to make an Android app that has audio and video call feature I am really stuck on that part in Android project of mine . Please bro it's a humble request to you.

  • @kazoobab.l2836
    @kazoobab.l2836 2 года назад

    LOVED IT

  • @Romek_S
    @Romek_S 4 года назад

    It would be great if you could make a short video about the object oriented version of this. I've checked it on your GitHub but If you could add some explanations it would be very helpful.

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

    The amount of work needed to put common controls on a form really takes the fun out of coding

  • @dishanmadhuranga8032
    @dishanmadhuranga8032 4 года назад

    Thank you.. I make this weekend..

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

      ruclips.net/video/CEc77MQFzhk/видео.html&ab_channel=TheCodeLearner

  • @Wilksey37
    @Wilksey37 4 года назад +1

    Great video, I notice you are getting a lot of mentions from other YTers as a good resource, I think since TheNewBoston left town you are the "go to" channel for tutorials and such, you have a good range of content and it is getting more varied, this video proves that, not far from 1M subs either! Well deserved I say, your content is invaluable!!

    • @FordExplorer-rm6ew
      @FordExplorer-rm6ew 4 года назад

      Basically, yes

    • @bankoleesan2129
      @bankoleesan2129 4 года назад

      Awww yeah! Damn I remember TheNewBoston from back in the day... Bucky Roberts was such fun to learn from. But yeah, Mr Traversy is basically the go to for RUclips tuts right now 😌

  • @tonylancer7367
    @tonylancer7367 4 года назад +5

    Finally something I dig my teeth into.
    Any reason you're on Mac for a while these days?

    • @TraversyMedia
      @TraversyMedia  4 года назад +4

      I use both but mac just seems smoother for what i do as far as web dev. Less headaches with npm, etc...This project was an exception. Pyinstaller worked fine on windows and gave me issues on mac.

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

    I'm watching this is April 2021 using Python 3.9.2 (Brad is using 3.7.0) and the Tkinter constructor options for many of the widgets are very different. I'm surprised there's been so much change in only 18 months.

  • @khmsalhuas1
    @khmsalhuas1 4 года назад

    Great tutorial!
    at 41:50 you can just say if '' in [part_text.get(), customer_text.get(), retailer_text.get(), price_text.get()]
    or use any([part_text.get()=='', customer_text.get()=='', retailer_text.get()=='', price_text.get()==''] ). If I am going to write similar to what you did, I would write it in this way...
    if (
    part_text.get()=='' or
    customer_text.get()=='' or
    retailer_text.get()=='' or
    price_text.get()==''
    ):
    do whatever

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

    Quality content.
    👍

  • @Ts-yy2jn
    @Ts-yy2jn 4 года назад

    First like
    Than watch 😎❤️

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

    I will like you to do a maths app with python there should be complex numbers,differentiation,calculus and other maths operation thank you very much

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

    Great Video! Thank you! Could Tkinter be used on a Raspberry Pi with the official 7" Touch Screen?
    Does Tkinter support displaying live changing analog readings on the screen?

  • @lassinaouattara1213
    @lassinaouattara1213 4 года назад

    hello Brad, this is very nice, we would like to learn about pyside2 or pyqt please;)

  • @DevSage
    @DevSage 4 года назад

    Excellent tutorial! Hey Brad, quick question - don't know if you already have a video out there about this, but do you have any tips on how a small dev tutorial channel like myself(~430 subs) can gain more exposure? My focus is Javascript-related. I mean, my content's good and I'm definitely growing, but it's like at a snail's pace!

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

    I feel like I owe my career to traversy media lmao

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

    thank you Heisenberg :)

  • @mrityunjayahiremath3951
    @mrityunjayahiremath3951 4 года назад

    Hey Brad, please make a RUclips video or Udemy course on REST API using Python and Django

  • @circuitmasters5258
    @circuitmasters5258 4 года назад

    Thanks Brad this will work - i did a project like this before - what i want to know is how to encrypt the database

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

      ruclips.net/video/CEc77MQFzhk/видео.html&ab_channel=TheCodeLearner

  • @dontbeafraid5313
    @dontbeafraid5313 4 года назад +1

    Hi Brad can you make a linode tutorial please. Thanks

  • @ytlagu2010
    @ytlagu2010 4 года назад +1

    You really have passion for what you're doing... I enjoy your videos and sometimes I won't know if it is the end of it... good work bro!!! more hugs from Africa!!!

    • @graciousemmanuel6142
      @graciousemmanuel6142 4 года назад +1

      Stop making Africa look like a country

    • @ytlagu2010
      @ytlagu2010 4 года назад +1

      @@graciousemmanuel6142 I am proud of Africa and proud too to be an African, oga!

    • @graciousemmanuel6142
      @graciousemmanuel6142 4 года назад

      @@ytlagu2010 I see that, but comments like this makes westerners look at Africa like a country. I'm not sure you will see a westerner comment such like : "much love from Europe" . that's what I mean.

    • @ytlagu2010
      @ytlagu2010 4 года назад +1

      @@graciousemmanuel6142 I don't think there is a rule that states that the phrase "much love from ..." should be used only with a country name. It could be any noun really, correct?

  • @TheFringeRevolver
    @TheFringeRevolver 4 года назад

    Great tutorial! I notice a lot of other tutorials in tkinter people are using ".pack" but this one isn't. Can anyone offer an explanation to what the difference is?

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

    I woulda put these products into a "treeview" widget instead. You get way better separation and appearance as well.

  • @mbarakat001
    @mbarakat001 4 года назад

    Thank you a lot.

  • @tareqmonwer6494
    @tareqmonwer6494 4 года назад

    Take love from python guys :)

  • @sazidahmed3012
    @sazidahmed3012 4 года назад

    Thank you so much

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

    Good information

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

    I really enjoyed this tutorial. I did have a question. Why do you do a part_entry.delete(END) rather than setting part_text=''?

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

    Hello Brad. Nice tutorial. I have a question, I want to use one of the button to activate another code. Any suggestion?

  • @SadBoy-iz4jg
    @SadBoy-iz4jg 3 года назад

    Thx brad

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

    Many Thanks.

  • @dmbrv
    @dmbrv 4 года назад

    great video

  • @ahmad-murery
    @ahmad-murery 4 года назад

    Thanks Brad,
    About the add_item function
    I just noticed that after you called db.Insert you deleted the part_list and then insert the new item's data into the list
    although, you called the populate_list function after it
    isn't it enough to just call populate_list which will delete the list before populating it with old data plus new inserted item?
    Or return the new inserted item from db.Insert then just add this row to the list instead of populating all the list for each insert, update and delete operation?
    Regards

  • @user-xs2nk3vw7d
    @user-xs2nk3vw7d 2 года назад

    Genius!!!!!!

  • @DavidBrooksNYC
    @DavidBrooksNYC 4 года назад

    Nice !!

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

    awesome!

  • @jwchavez
    @jwchavez 4 года назад

    Thanks for this tutorial Brad, just the one i needed. I have just finished learning python basics and was wondering about how to create cross platform desktop apps with this language, so your tutorial comes quite handy. I have just a some questions: a) Why are those curly brackets showing in the listbox? b) I suppose that once the installer executable file is built, i may copy it to another computer. But, do i need to install python (same version) on the target computer? is this executable file a 100% native binary or does it include an embedded python interpreter? c) Is the executable generated file comparable to those generated by nuitka?
    Sorry for so many questions, i'll take a look to tkinter docs. Thanks a lot for your great content buddy. Regards from México !

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

      ruclips.net/video/CEc77MQFzhk/видео.html&ab_channel=TheCodeLearner

  • @amaromem1
    @amaromem1 4 года назад +1

    Really interesting but why not to use C#?
    Any advantage from Python over C# in this task?

  • @SkyFly19853
    @SkyFly19853 4 года назад +1

    Thank you so much for this tutorial!!!!
    Btw, will you make Python OpenGL tutorial for making 3d games or objects in 3d?
    Thank you in advance!

  • @crazcoder4243
    @crazcoder4243 4 года назад

    Awesome..

  • @MikeNugget
    @MikeNugget 4 года назад

    It would be great if you could make portable desktop apps with Python and run it w/o admin privilages

  • @camengadisaputra
    @camengadisaputra 4 года назад

    Brad please do qt with qml tutorial