Modern Graphical User Interfaces in Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ค. 2024
  • In this video, we learn how to build modern-looking graphical user interfaces (GUIs) in Python.
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    🐍 The Python Bible Book: www.neuralnine.com/books/
    💻 The Algorithm Bible Book: www.neuralnine.com/books/
    👕 Programming Merch: www.neuralnine.com/shop
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine.com/
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/NeuralNine
    🎙 Discord: / discord
    🎵 Outro Music From: www.bensound.com/
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 635

  • @robinpipslayertekprofitsfa2644
    @robinpipslayertekprofitsfa2644 ปีที่แล้ว +18

    Definitely love the speed of delivery you bring!! Fast, sharp....to the point!! CTK added to the list of tools now, thinking I’ll be using that a LOT more than TK 😵🤭 cheers!!

  • @afiffarakhan4992
    @afiffarakhan4992 9 หลายเดือนก่อน +4

    Man, what I've been looking for years. You're killing it bro

  • @JRis44
    @JRis44 ปีที่แล้ว +9

    Finally some more videos on this repository. I'm looking forward to the innovations coming out of this customTkinter! I need to get back to working on all the basic programs I made without a GUI back when I started learning python in February. Goodness this is exciting!

  • @Oliver1269ii
    @Oliver1269ii ปีที่แล้ว +231

    This was such a fast, yet very informative video. Well done, thats a hard balance to make in a 10 minute video. Keep up the good work!

    • @sinkingboat101
      @sinkingboat101 8 หลายเดือนก่อน +2

      Could not agree more. As he pointed out himself, it is just sort of a wrapper around tkinter, with nicer names etc. and much more comfort. This can be all done in the original, but it would take a lot of time. A really nice 10 minute dive to get familiar with a new library

  • @HomelessOnline
    @HomelessOnline 3 หลายเดือนก่อน +6

    I'm a beginner to Python. This is a fantastic presentation, I feel like I could build a nice UI tonight.

  • @MrBiggles53
    @MrBiggles53 ปีที่แล้ว +15

    LOT of improvements since 2.12 & wxPython! I hope to get back into Python in a year or so. Had to switch to Java then C+ or Sharp for projects before switching to web front ends then Linux Admin. The programming approach still comes in handy, but I’ve strayed from being pure pythonic.

  • @sebastianjost
    @sebastianjost ปีที่แล้ว +3

    Amazing.
    I could never figure out a reasonably easy way to do rounded corners in tkinter.
    Here that seems to be the default setting.

  • @herbst2941
    @herbst2941 ปีที่แล้ว +3

    Wow, that’s an amazing content! Started to work with tkintier few days ago, and got this video recommended, totally satisfied 😀

  • @pipedreamsnetwerk5110
    @pipedreamsnetwerk5110 ปีที่แล้ว +4

    Every video you put out, I learn something new about Python.
    You and Socratica are the best channels on YT for this kind of content. AAA.

  • @damanamathos
    @damanamathos ปีที่แล้ว +3

    Great video, didn't realise it was so easy to make a great-looking GUI until I watched this video. Thanks!

    • @marksmith2738
      @marksmith2738 2 หลายเดือนก่อน

      This is the Stone Age of GUI's. You should be able to draw your interface with simple drawing tools. No code required.

    • @DocHudson420
      @DocHudson420 หลายเดือนก่อน

      @@marksmith2738the code those create is garbage.

  • @bloodyyjohnson7004
    @bloodyyjohnson7004 ปีที่แล้ว

    thank you, I've been looking for a long time for a simple way to create beautiful interfaces, not so different from tkinter, I'm glade

  • @imclowdy
    @imclowdy ปีที่แล้ว +90

    You are so consistent with amazing content; Hands down the best TH-cam channel on python development.

    • @Hephasto
      @Hephasto ปีที่แล้ว +1

      You sure the best?😊

    • @rivalyrs8579
      @rivalyrs8579 ปีที่แล้ว

      @@Hephasto yea. with tim yea.

  • @RobMapes
    @RobMapes ปีที่แล้ว +2

    Just discovered this video and immediately subscribed to your YT channel. Great resource for a long-time developer who is just starting to learn Python and who doesn't need an "entry to programming" channel.

  • @alejandrogaut
    @alejandrogaut ปีที่แล้ว +1

    Nicely explained, right to the point!!

  • @shivrajanand2002
    @shivrajanand2002 ปีที่แล้ว

    I am regretting for not finding this channel earlier. Bro you are amazing.

  • @ghost99slay
    @ghost99slay ปีที่แล้ว

    This is GOATED! Thank you sm. Never stop making videos!

  • @Native_love
    @Native_love ปีที่แล้ว +2

    Excellent tutorial! Thank you!

  • @skoolderz55
    @skoolderz55 ปีที่แล้ว +36

    Depending on the python version, you would have to put "font=("Roboto", 24)" in place of "text-font"

    • @themastersoul3138
      @themastersoul3138 ปีที่แล้ว +2

      Thanks bro it helps me!

    • @kaiden_aka_forevrr
      @kaiden_aka_forevrr ปีที่แล้ว +2

      YOU ARE A LIFESAVER!!!! thanks so much!!! :)

    • @stephencombes1979
      @stephencombes1979 ปีที่แล้ว +1

      Thank you very much!!!! I was struggling to figure out why it wasn't showing the GUI upon execution, I'm using Python 3. I hoped to see something in the comments, and wasn't disappointed 🙂

    • @septic2986
      @septic2986 5 หลายเดือนก่อน +1

      Thank You Sir

    • @lunowpt
      @lunowpt 5 หลายเดือนก่อน +1

      Thank u bro u saved me

  • @DaeViZ0n3
    @DaeViZ0n3 ปีที่แล้ว +497

    When will someone make a drag-and-drop editor for this and help everyone save time on manually coding such stuff. Even VBA had this built in, why is everyone so proud of all the characters it took to build a UI..

    • @robertfox499
      @robertfox499 ปีที่แล้ว +52

      I was thinking the exact same thing myself. Even VBA in Excel has a click and drag UI builder so why are people getting so excited about this? And then it dawned on me that one could pretty easily build a Tkinter Drag and Drop GUI builder in... wait for it... wait for it...: Visual Basic Dot Net or Visual Basic C#. It would be a supreme irony, no?

    • @juanandresmolina9704
      @juanandresmolina9704 ปีที่แล้ว +26

      It's a project (i don't remember the name) that does something like this, it's very basic and does not work really well.
      It uses Figma and Tkinter.

    • @MichaelVash7886
      @MichaelVash7886 ปีที่แล้ว +7

      There is a program like that for qt. But I don't know of any popular ones for GTK

    • @TaoqeerNezam
      @TaoqeerNezam ปีที่แล้ว +47

      PyQT "Designer"

    • @MichaelVash7886
      @MichaelVash7886 ปีที่แล้ว +1

      @@TaoqeerNezam that's the one I know of.

  • @mariumbegum7325
    @mariumbegum7325 ปีที่แล้ว

    Fantastic content! Look forward to seeing more!

  • @martinyates353
    @martinyates353 ปีที่แล้ว

    My first GUI! great video thanks.

  • @abhijitdutta1461
    @abhijitdutta1461 ปีที่แล้ว +40

    Man you're soo underrated.. you deserve more subscribers 💯

  • @KellsCode
    @KellsCode ปีที่แล้ว

    I built a nice little project with Custom Tkinter over the past 6 months! It's pretty good. It's great if your project needs to get up and running quickly and you want it to look decent. I have some videos on my channel about it.

  • @arbataxiansoul
    @arbataxiansoul ปีที่แล้ว

    Illuminating and very well explained, I can´t wait to try it myself! Thanx

    • @coding_with_ash
      @coding_with_ash ปีที่แล้ว

      th-cam.com/video/ACEc6wazCQc/w-d-xo.html
      Plz check this awesome video also on the same topic.. .🙏

  • @samrijijkot
    @samrijijkot ปีที่แล้ว

    Thanks for demonstrating all these libraries!

    • @coding_with_ash
      @coding_with_ash ปีที่แล้ว

      th-cam.com/video/ACEc6wazCQc/w-d-xo.html
      Plz check this awesome video also on the same topic.. .🙏

  • @FDozza
    @FDozza 9 หลายเดือนก่อน

    This really helped me out, thank you

  • @CaffeinatedTech
    @CaffeinatedTech ปีที่แล้ว

    That's a much more modern interface. Cheers for showing it off.

  • @training7574
    @training7574 2 หลายเดือนก่อน

    Very clear and to the point, thanks!

  • @MZak-js7oy
    @MZak-js7oy ปีที่แล้ว +469

    can you make a comparison between "PysimpleGUI, Tk, CustomTK, streamlit and Flet" ? the complexity of the code, the number of code lines, load time, speed, event handling, web usage etc ?

    • @UncleDavid
      @UncleDavid ปีที่แล้ว +139

      flet is just flutter bindings, pysimpleGUI looks like windows 95, tk looks like windows 98, customtk looks like windows xp, streamlet is basically react components so html and css, pyqt has .ui files which are basically xml files, xml can be edited to your hearts content with css, or you can use their ui python syntax to make modern apps

    • @cheaterman49
      @cheaterman49 ปีที่แล้ว +6

      Kivy too :-)

    • @Mahanmarwat
      @Mahanmarwat ปีที่แล้ว

      @@cheaterman49 PyGi too.

    • @duftcola
      @duftcola ปีที่แล้ว +3

      Pysimplegui only lets you create a single window so if your ui is a bit more complex than that then it is quite limited

    • @cheaterman49
      @cheaterman49 ปีที่แล้ว +7

      @@UncleDavid How is Kivy "pretty limited"? It gives you access to the whole power of OpenGL/GLES, so you have literally as much control as you want :-)

  • @MidnightMarrow
    @MidnightMarrow ปีที่แล้ว +1

    Man I'm glad I found this, out of everything I've looked at nothing has mentioned customtkinter lol. Starting with Python trying to make a server manager which is probably a stupid start but I also wanted something useful that will help push me through it instead of giving up sooner than later. Looked at the WYSYWYG GUI implements etc but everything kind of looked ugly. Part of me wants to just code it out in Sublime and the other part of me wants to save time on the GUI via drag and drop concept which of course creates massive endless blocks of code which is annoying to sift through should I have the desire or need to. As much as I don't want to waste time on it I want it to look nice and be user friendly and I'm kind of just stuck at what I want to do now. -_-'

  • @WolfgangWittler1984
    @WolfgangWittler1984 ปีที่แล้ว

    Nice, informative video. Thank you.

  • @ChineseBuddy
    @ChineseBuddy ปีที่แล้ว +1

    Wow, exceptional channel. This rocked!

  • @Iamfoxbrown
    @Iamfoxbrown 8 หลายเดือนก่อน +3

    Topzeira o que vc fez. It will be useful for me to use in my projects. Thanks!

  • @ElHeyne
    @ElHeyne 7 หลายเดือนก่อน

    This was so helpful. Thank you very much 😯

  • @minkulai
    @minkulai ปีที่แล้ว

    Thanks to you I've created my first GUI "app" :D

  • @retzerR
    @retzerR ปีที่แล้ว

    THE VIDEO I NEED, thank you soooo much

  • @stilllearning3000
    @stilllearning3000 11 หลายเดือนก่อน

    That was amazing. Saving for later.

  • @rawgosh
    @rawgosh ปีที่แล้ว +3

    I am currently learning tkinter and I am super amazed by the fact that what a coding skill can do. Loved the video🙌🙌

    • @sebastianjost
      @sebastianjost ปีที่แล้ว +1

      Looks like you can just use this instead. From what's seen in the video, everything you learn about tkinter can instantly be used for Ctk too.
      Syntax and variable names are almost identical and all major objects seem to exist in Ctk

  • @SaintNath
    @SaintNath 8 หลายเดือนก่อน

    Thanks that is such a boost to my tkinter app I am building. Now it doesn't look like Windows 2000 anymore ❤

  • @aikidoshi007
    @aikidoshi007 ปีที่แล้ว

    Nicely done, thanks!

  • @rudiklein
    @rudiklein ปีที่แล้ว +1

    Nice! I was going to try some stuff in tkinter, but I use Ctkinter instead.

  • @tayyab8215
    @tayyab8215 11 หลายเดือนก่อน

    amazing! we need more videos on python GUI

  • @frederikmrozek4564
    @frederikmrozek4564 ปีที่แล้ว +1

    The developer Tom is a cool guy. Really nice project!!!

  • @AnthonyKenny-wl5ud
    @AnthonyKenny-wl5ud ปีที่แล้ว

    Works great! Had some customtinker import probs but got it working soon.

  • @shashwatmangulkar1107
    @shashwatmangulkar1107 ปีที่แล้ว

    Thanks bro for the information, i got to know this from this video only and that too first time , now i will make better GUIs than tkinter ones

  • @rachinter
    @rachinter ปีที่แล้ว

    Thats so simple....thanks bro

  • @uplink-on-yt
    @uplink-on-yt ปีที่แล้ว +22

    I'll forever be amazed at how we make visual interfaces without visual editors...

    • @NeonGreenT
      @NeonGreenT 3 หลายเดือนก่อน +3

      Yeah, or how we have to read through some thrown together error output instead of the editor just straight up jumping and highlighting the line where the exception happend. I mean it can output the error, why can't it process it then ?
      I think all of this is even more ridiculous if you compare it to games like AgeOfEmpires or something, like even the games almost thirty years ago had visual designers for their ingame levels, yet when programming anything it feels like I have to deal with 40yr old technology for some religious reason. IMO programming should be the most advanced user experience a computer can give you and not the worst one lol.

    • @DankMemes-xq2xm
      @DankMemes-xq2xm หลายเดือนก่อน

      @@NeonGreenT True. Honestly feels like game engines handle this stuff better. It takes literally seconds to throw together a UI and a bunch of working buttons in something like Unity or Godot. It actually makes me wonder if making an application 100% in Godot is feasible (not a video game, but a mobile app like IG or something)

  • @ozmosyd
    @ozmosyd 6 หลายเดือนก่อน

    Nice. Thanks for shraring chap!

  • @aaroncatolico7550
    @aaroncatolico7550 ปีที่แล้ว +2

    I'm currently working on a project that I'm customizing manually. I've yet to try it cross platform as I've only tried it on Windows 10 & 11, but assuming that it looks good the across all OS's, I'll finish the whole project fully customizing it with my own graphics.

    • @janusztarnowski115
      @janusztarnowski115 ปีที่แล้ว

      simple application enter your details
      th-cam.com/video/DWn5-Ej8R-M/w-d-xo.html

  • @CivicSploits
    @CivicSploits ปีที่แล้ว

    kinda got bored and stumbled upon this very nice video i love python

  • @LukieHZX
    @LukieHZX ปีที่แล้ว +1

    This looks so f*ing good! 👍👏

  • @davethinkingsystems
    @davethinkingsystems 2 หลายเดือนก่อน

    really nice video, thanks for sharing.

  • @helderfn
    @helderfn ปีที่แล้ว

    Excellent! Thank You!

  • @mbassiouny
    @mbassiouny ปีที่แล้ว +4

    Great content! Thanks for the video
    I would appreciate it if you make a quick video on how to extend this with a field/box to drag and drop a list of files in the app.

  • @pardener
    @pardener ปีที่แล้ว

    this interface is astonishing

  • @Vsont
    @Vsont ปีที่แล้ว

    Awesome, well done!

  • @guymerlindyangnou117
    @guymerlindyangnou117 10 หลายเดือนก่อน

    Amazing as usual

  • @balcopc
    @balcopc 3 หลายเดือนก่อน

    nice video, works just like the original and looks great!

  • @deemon710
    @deemon710 ปีที่แล้ว +1

    That's kick-ass! Up to this point anything I made in python was restricted to cmdline stuff. Now I can make stuff with a UI! Thanks!

    • @2GoodMath
      @2GoodMath ปีที่แล้ว +1

      Try pygame, its pretty good. It makes a custom window that you can draw shapes and images at any coordinate. Also, you can use math and lists to create complex games with physics or environments to explore.

  • @kermosrujji9475
    @kermosrujji9475 ปีที่แล้ว +1

    it's awesome, thanks for this one, please could you elaborate more about modern ui with tkinter by building a more complex app, like a store management app

  • @muhammadabuelenin7233
    @muhammadabuelenin7233 ปีที่แล้ว

    thanks bro, Keep it up

  • @versystudio822
    @versystudio822 10 หลายเดือนก่อน +4

    Since customtkinter update, if you have an error "ValueError: ['text_font'] are not supported arguments", change argument 'text_font' to 'font', like this: label = customtkinter.CTkLabel(master=frame1, text="Trade Control", font=("Roboto", 24))

    • @raindrop2124
      @raindrop2124 9 หลายเดือนก่อน

      Thank you, I was wondering why it wasn't working

  • @eddmanoo
    @eddmanoo ปีที่แล้ว +6

    Merci, it is a great example
    (On line 17 text_font=, it gave me an error, so I only used font=)

    • @parenthecoltsenr
      @parenthecoltsenr ปีที่แล้ว +3

      same, im glad i found your comment :D

  • @TilDrill
    @TilDrill ปีที่แล้ว

    I would have liked if you showed the visual progress of the frame somewhere while writing code since that makes if way easier to understand what does what

  • @FabrizioFadda
    @FabrizioFadda 8 หลายเดือนก่อน

    i set a background image, a color gradient, but when i tried to set the frames transparent (to reveal the gradient in the background) it didn't work, just showed the system color or the dark or the light,. How can i solve?

  • @Vivek_xkt
    @Vivek_xkt ปีที่แล้ว

    This is what i was waiting for.

  • @piyushgupta5262
    @piyushgupta5262 9 หลายเดือนก่อน

    What about its comparison with ttkbootstrap ? Which one would you suggest ? No doubt this looks good, but looking for a suggestion.

  • @TheJoker-te7te
    @TheJoker-te7te 7 หลายเดือนก่อน

    This is awesome, thanks for sharing! I remember the days I would use Python and wxWidgets and smash my head against the wall, like 10 years ago. This is much prettier.

  • @filecat9501
    @filecat9501 ปีที่แล้ว

    honestly , pyside/qt should def be looked into.

  • @vincebracken3872
    @vincebracken3872 ปีที่แล้ว

    Excellent tutorial

  • @tudorradu5848
    @tudorradu5848 3 หลายเดือนก่อน

    Great tutorial!

  • @x47base
    @x47base ปีที่แล้ว

    I love that tutorial!

  • @yodabyte
    @yodabyte ปีที่แล้ว

    Good info, love it.

  • @sovereignlivingsoul
    @sovereignlivingsoul ปีที่แล้ว

    looks great, should help with web page designs

  • @thefamousdjx
    @thefamousdjx ปีที่แล้ว +16

    For the easiest, intuitive and very modern ui just make your python code to an api and use Flutter for front end. If you just need a quick ui where the user isnt worried about the look then pyqt is the best through the designer and you can easily implement progress bars, drag and drop of files etc

    • @BurakSaruhan
      @BurakSaruhan ปีที่แล้ว +2

      Is there any examples to this? Like a boilerplate git repo?

    • @ccl4872
      @ccl4872 7 หลายเดือนก่อน

      How would I go about doing that? I'm new to this so what would I have to learn make my python code an api and use flutter for front end? Thanks!

    • @shawnington
      @shawnington 6 หลายเดือนก่อน

      QT and intuitive don't belong in the same sentence. Its a C++ library with Python bindings, but still mostly still C++ syntax, for anyone not semi competent in c++ its the most confusing non-pythonic thing they will ever interact with in python.

  • @stansuen8072
    @stansuen8072 10 หลายเดือนก่อน

    Great Video! Wonder if we can embed Javascript (like interactive stock chart) into the UI?

  • @mmhome84
    @mmhome84 7 หลายเดือนก่อน

    Amazing content

  • @dion4894
    @dion4894 ปีที่แล้ว +1

    Great video! Is it possible to create a 'datepicker' using customtkinter?

  • @BlackCat-vu1dc
    @BlackCat-vu1dc ปีที่แล้ว

    I love how all video of many TH-camrs saying you don’t need to know the module yet you are using it and if you are you need to understand it

  • @BCTAHbKA
    @BCTAHbKA ปีที่แล้ว

    Bu şimdiye kadarki en iyi video

  • @thisenekanayake2832
    @thisenekanayake2832 7 หลายเดือนก่อน

    Thank you❤

  • @dabunnisher29
    @dabunnisher29 ปีที่แล้ว

    Very nice. Thank you.

  • @swordlion294
    @swordlion294 ปีที่แล้ว

    Really really good content.

  • @deblobvis264
    @deblobvis264 10 หลายเดือนก่อน

    This will help me making my graphic calculator

  • @sudarshankshirsagar4568
    @sudarshankshirsagar4568 ปีที่แล้ว +2

    Brother can you make a detailed/brief video on MatplotLib in Pyqt5 in OOP way ?

  • @nolanstrife7350
    @nolanstrife7350 ปีที่แล้ว +6

    Hi there
    A quick question... Is there any good Python GUI designers akin to VS2022's Windows Forms or IntelliJ's Swing?
    And on that topic, is it so bad to rely on those? Because to me just coding UIs without seeing them is not very obvious, while using designers not only makes it easier to see what are you doing, but also doubles as a "sketching phase" of developing a program

    • @Quill-gs1kl
      @Quill-gs1kl 2 หลายเดือนก่อน

      pyqt5

  • @MusaMineVlogs
    @MusaMineVlogs ปีที่แล้ว +1

    can you make a comparison between "PysimpleGUI, Tk, CustomTK, streamlit and Flet" ? the complexity of the code, the number of code lines, load time, speed, event handling, web usage etc ?
    🤗🤗

    • @albert-2664
      @albert-2664 5 หลายเดือนก่อน

      you just copied this

  • @BANIAAAAK
    @BANIAAAAK 7 หลายเดือนก่อน

    How do you know all that? You understand the concept? or you have a pre ready sheet?

  • @thuongtrinh9364
    @thuongtrinh9364 ปีที่แล้ว

    Thats great bro

  • @akiladasanayaka1298
    @akiladasanayaka1298 ปีที่แล้ว

    love this💜

  • @sefisyara5961
    @sefisyara5961 ปีที่แล้ว

    It is cool, but it seems like you can't have as custom programms as with Tkinter; you can create a window like this with Tkinter, but it will be much harder, but on the other hand, you can get much more creative. Really depends on your needs.

  • @Gilberto-Guzman
    @Gilberto-Guzman ปีที่แล้ว +2

    Very good video, I just change the font_Text parameter to font to make it work in python 3.11.2, your explanation is clear. Like and Sub

    • @arthurgegelmann609
      @arthurgegelmann609 ปีที่แล้ว

      thank you so much!! im new to coding so it helped me a lot. im 100% sure that i wouldnt have got it without your help.

    • @brunouli1943
      @brunouli1943 ปีที่แล้ว

      thanks man

  • @SimpleMan12356
    @SimpleMan12356 6 หลายเดือนก่อน

    Its incredible something that we can do in html we can also do it in python. Pyhton is something else !!

  • @mezess5062
    @mezess5062 ปีที่แล้ว

    Thank you! 😀

  • @weckchannel8071
    @weckchannel8071 ปีที่แล้ว

    thank for sharing ❤❤

  • @dido2079
    @dido2079 25 วันที่ผ่านมา

    congrats from Paris !!!!

  • @houbenovepierre-louis4654
    @houbenovepierre-louis4654 4 หลายเดือนก่อน

    This is beautiful, I just started with tkinter a few days back how would I implement something like after the user signs in it goes to a new page ?

  • @frijomav8904
    @frijomav8904 ปีที่แล้ว

    thanks for your tutorial

  • @haveoneidea
    @haveoneidea ปีที่แล้ว +1

    Great jobs😀

  • @rexypy
    @rexypy ปีที่แล้ว

    Great video! You are a good teacher! Keep up your work :D