Modern Graphical User Interfaces in Python
Вставка
- Опубліковано 20 лис 2022
- 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/ - Наука та технологія
Man, what I've been looking for years. You're killing it bro
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!
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!!
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!
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
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..
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?
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.
There is a program like that for qt. But I don't know of any popular ones for GTK
PyQT "Designer"
@@TaoqeerNezam that's the one I know of.
I'm a beginner to Python. This is a fantastic presentation, I feel like I could build a nice UI tonight.
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.
Wow, that’s an amazing content! Started to work with tkintier few days ago, and got this video recommended, totally satisfied 😀
You are so consistent with amazing content; Hands down the best UA-cam channel on python development.
You sure the best?😊
@@Hephasto yea. with tim yea.
Amazing.
I could never figure out a reasonably easy way to do rounded corners in tkinter.
Here that seems to be the default setting.
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.
Great video, didn't realise it was so easy to make a great-looking GUI until I watched this video. Thanks!
This is the Stone Age of GUI's. You should be able to draw your interface with simple drawing tools. No code required.
@@marksmith2738the code those create is garbage.
Depending on the python version, you would have to put "font=("Roboto", 24)" in place of "text-font"
Thanks bro it helps me!
YOU ARE A LIFESAVER!!!! thanks so much!!! :)
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 🙂
Thank You Sir
Thank u bro u saved me
Man you're soo underrated.. you deserve more subscribers 💯
Ikr!!
Frfr
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.
You might also like mcoding then
I am regretting for not finding this channel earlier. Bro you are amazing.
I'll forever be amazed at how we make visual interfaces without visual editors...
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.
@@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)
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 ?
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
Kivy too :-)
@@cheaterman49 PyGi too.
Pysimplegui only lets you create a single window so if your ui is a bit more complex than that then it is quite limited
@@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 :-)
Nicely explained, right to the point!!
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
Topzeira o que vc fez. It will be useful for me to use in my projects. Thanks!
What about its comparison with ttkbootstrap ? Which one would you suggest ? No doubt this looks good, but looking for a suggestion.
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.
This is GOATED! Thank you sm. Never stop making videos!
Excellent tutorial! Thank you!
This really helped me out, thank you
Fantastic content! Look forward to seeing more!
That's a much more modern interface. Cheers for showing it off.
Great Video! Wonder if we can embed Javascript (like interactive stock chart) into the UI?
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. -_-'
Thanks for demonstrating all these libraries!
ua-cam.com/video/ACEc6wazCQc/v-deo.html
Plz check this awesome video also on the same topic.. .🙏
Illuminating and very well explained, I can´t wait to try it myself! Thanx
ua-cam.com/video/ACEc6wazCQc/v-deo.html
Plz check this awesome video also on the same topic.. .🙏
Great video! Is it possible to create a 'datepicker' using customtkinter?
Thanks for your video content, I have a question, does customtkinter differ from standard tkinter when it comes to verifying text entry, I am wondering if there's any improvement there?
Its a visual layer built on top of tkinter without really expanding on how each widget functions. Technically trying to port something from tkinter to customtkinter can currently lead to regressions as its not 1:1 with base tkinter yet (focus grabbing/detection is weird, need to use protected members of CTk classes to access certain things, etc)
My first GUI! great video thanks.
I am currently learning tkinter and I am super amazed by the fact that what a coding skill can do. Loved the video🙌🙌
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
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?
Wow, exceptional channel. This rocked!
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
pyqt5
How do you know all that? You understand the concept? or you have a pre ready sheet?
Thanks that is such a boost to my tkinter app I am building. Now it doesn't look like Windows 2000 anymore ❤
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 ?
Nice, informative video. Thank you.
Does. You import autocomplete? What do you do for that?
THE VIDEO I NEED, thank you soooo much
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))
Thank you, I was wondering why it wasn't working
The developer Tom is a cool guy. Really nice project!!!
Thanks to you I've created my first GUI "app" :D
Nice! I was going to try some stuff in tkinter, but I use Ctkinter instead.
Good day, how do you create or use the TreeView in Customtkinter? Is there a replacement for TreeView?
Does custom tkinter have the tabbed notebook option? I have a complex gui to set up and am thinking of combining it with learning custom tkinter.
First time watching one of your videos, it was great and will be checking out your web page. What plugin were you using to give you the autocomplete options?
he's using tabnine; a competitor to github co-pilot
ua-cam.com/video/ACEc6wazCQc/v-deo.html
Plz check this awesome video also on the same topic.. .🙏
Very clear and to the point, thanks!
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.
Quick side note for complete beginners you also have to "pip install packaging" i almost started crying because it didnt work but i was just missing packaging as im new to python
it still does not work for me
it gives me this error, how did you solve this?
Traceback (most recent call last):
File "C:\Users\Gebruiker\PycharmProjects\pythonProject\pythonProject\main.py", line 1, in
import customtkinter
File "C:\Users\Gebruiker\PycharmProjects\pythonProject\pythonProject\venv\Lib\site-packages\customtkinter\__init__.py", line 10, in
from .windows.widgets.appearance_mode import AppearanceModeTracker
File "C:\Users\Gebruiker\PycharmProjects\pythonProject\pythonProject\venv\Lib\site-packages\customtkinter\windows\__init__.py", line 1, in
from .ctk_tk import CTk
File "C:\Users\Gebruiker\PycharmProjects\pythonProject\pythonProject\venv\Lib\site-packages\customtkinter\windows\ctk_tk.py", line 7, in
from packaging import version
ModuleNotFoundError: No module named 'packaging'
thanks boss
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.
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.
simple application enter your details
ua-cam.com/video/DWn5-Ej8R-M/v-deo.html
Which software you are using sir?? Please reply 😊
amazing! we need more videos on python GUI
This looks so f*ing good! 👍👏
I never thought I'd learn python from Nacho Varga
"You import this library and you know, type in some stuff, so it got colour. Then you write some other stuff here and there. This code is... ye, you know, does stuff and so on... then we change colour again, because dark mode is important...... and here we go, we created minecraft!"
this interface is astonishing
Line 17 in the label defn. - text_font=("Roboto", 24) is incorrect ---- it should be: font=("Roboto", 24)
can i get this guy a gold star
i've made a interface using tkinter for a program i've developed, is there a way that i can use the code i already have and just aply a 'filter' or a CSS content to make it look 'modern'??
For some reason my custom tkinter doesnt want to work it just always says "'customtkinter' has no attribute 'set_appearance_mode'" what ever i do to get rid of it it just doesnt work. Im also using vs code maybe that might be the problem.
That's because your file has the same name as the library called. try calling it different than any library :D
This was so helpful. Thank you very much 😯
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
Merci, it is a great example
(On line 17 text_font=, it gave me an error, so I only used font=)
same, im glad i found your comment :D
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
This is what i was waiting for.
this is where C# makes GUI building so much easier
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
Hi, is there any way to control a raspberry pi with an interface like this, for example to turn on and off LEDs from some buttons on the app that you have created?
kinda got bored and stumbled upon this very nice video i love python
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!
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.
I love how all video of many UA-camrs saying you don’t need to know the module yet you are using it and if you are you need to understand it
Works great! Had some customtinker import probs but got it working soon.
how?
Accidental tutorial: I think I saw him using the insert key so he could drop the cursor to the next line without inserting a line break? Genius
John Elder's Tkinter tutorial: Walter White teaches Tkinter.
NeuralNine's Tkinter tutorial: Nacho Varga teaches Tkinter.
That was amazing. Saving for later.
I like PyQt because you can design the GUI graphically (QT Designer)... does customtkinter have anything like that?
Any thoughts on Flet (Flutter) or the Orbital Widget Toolkit?
its not easy portable
Awesome, well done!
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
Is there any examples to this? Like a boilerplate git repo?
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!
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.
I love that tutorial!
Nicely done, thanks!
Brother can you make a detailed/brief video on MatplotLib in Pyqt5 in OOP way ?
PLSSS reply 2 ths, but wat did u use 2 record ths?
Do i need to install the module on every computer where i want to run the .exe or will it just work?
It is giving me the error "Customtkinter has no attribute 'set_default_color_theme' " how do i fix this?
looks great, should help with web page designs
Its incredible something that we can do in html we can also do it in python. Pyhton is something else !!
Can you tell us a link to the code in the video on GitHub?
I couldn't find it on your GitHub.
Does it work with Linux as well without loosing any UI and appearance of it ?
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.
honestly , pyside/qt should def be looked into.
Hello sir, can you help me with one question?
I have a program with a input screen. After providing the data on the screen I run the program.
While the program is running, the run screen freezes until the program finishes with the job.
How can I prevent the screen from freezing while the program is running?
you need to run the ui and the program in different threads
Excellent! Thank You!
Please try to update the code files and the links in the description as soon as possible.
Hi, I installed customtkinter in the version 5.1.2 and this version I have replaced font_text to font to run the script without errors. Thanks for the video help me.