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 🙂
Finding your video was like a breath of fresh air. You're pacing is perfect not so fast that you lose anything and not so slow that you go crazy waiting for content. Instant subscribe and like. You get to the point no useless palaver can you use good examples. Thank you so much for this great content!!!!
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
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))
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?
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!!
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!
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.
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
@@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 :-)
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.
I would strongly recomend to any linux users just looking to make GUI for yourself or other linux user. The Gnome and KDE python gui kits are really nice and handle all of the themeing etc for you since they make use of whatever your DE settings are
i was have an error not working and solved by google it Instead of using text_font=("Roboto"), 24)). Use (master=frame, text="Login" font=("Roboto"), 24)). The current version library to 'customtkinter' update may have caused the change.
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.
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.
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)
I'm trying to implement this GUI into the secure login from the other video as suggested. Having trouble getting the gui to link up with the back end - server communication
Awesome tutorial! However, on my machine, I had to use font=("Roboto", 24). Customtkinter would throw an exception error whenever I tried to use text_font since its updated to 5.0.3.
More than 20 years ago we had visual basic, and we were able to build a user interface by drag&drop elements into a form then just double click it to add the code. What's happened to that technology? Do we move backward or something?
I don't understand why the button argument for command=function() doesn't accept arguments like entry1 which to me seems like rather obvious use of it. Or getting a valid text from the entry1.
Menu bars do not exist in this module....tkinter integration with code works but menu is not affected by the theme...hence it remains white in a dark themed window. Other than making menu by yourself using buttons, do you have any suggestions?
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
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
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.
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
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 have made a application with custumtkinter python , when it changes a screen we can see how it is changes , like each frame comes and changes its position until final position takes, within 1 sec
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'
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.
Help, please! I am new to Python. When running the program, I get the error that module customtkinter is not found yet the install shows that it is there and is satisfied. Running Python 3.12 in Visual Studio Code. ModuleNotFoundError: No module named 'customtkinter' This occurs at the import line.
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?
I built a GUI and I have an input widget, .CTk, and a output widget, CTkTopLevel. I use CTKLabel to get the data to the screen. How can I print the data on the screen to a printer? It's the CTkTopLevel screen.
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. -_-'
"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!"
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, what I've been looking for years. You're killing it bro
Finding your video was like a breath of fresh air. You're pacing is perfect not so fast that you lose anything and not so slow that you go crazy waiting for content. Instant subscribe and like. You get to the point no useless palaver can you use good examples. Thank you so much for this great content!!!!
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
really bro :(
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
I'm a beginner to Python. This is a fantastic presentation, I feel like I could build a nice UI tonight.
Wow, exceptional channel. This rocked!
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.
Man you're soo underrated.. you deserve more subscribers 💯
Ikr!!
Frfr
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!!
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!
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
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 :-)
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.
I am regretting for not finding this channel earlier. Bro you are amazing.
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
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.
I would strongly recomend to any linux users just looking to make GUI for yourself or other linux user. The Gnome and KDE python gui kits are really nice and handle all of the themeing etc for you since they make use of whatever your DE settings are
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.
i was have an error not working and solved by google it
Instead of using text_font=("Roboto"), 24)). Use (master=frame, text="Login" font=("Roboto"), 24)). The current version library to 'customtkinter' update may have caused the change.
Thank you!!!
Wow, that’s an amazing content! Started to work with tkintier few days ago, and got this video recommended, totally satisfied 😀
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.
how can we change icon in customtkinter??
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
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
That's a much more modern interface. Cheers for showing it off.
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.
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)
@@DankMemes-xq2xm potentially in Godot it's quite easy, but why would you?
@@AndrasBuzas1908 I posted that comment before I knew of the existence of android studio, lmao
I'm trying to implement this GUI into the secure login from the other video as suggested.
Having trouble getting the gui to link up with the back end - server communication
My first GUI! great video thanks.
Awesome tutorial! However, on my machine, I had to use font=("Roboto", 24). Customtkinter would throw an exception error whenever I tried to use text_font since its updated to 5.0.3.
thx!
Got to love quickly finding a comment that solves an issue I ran into!
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
The developer Tom is a cool guy. Really nice project!!!
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
More than 20 years ago we had visual basic, and we were able to build a user interface by drag&drop elements into a form then just double click it to add the code. What's happened to that technology? Do we move backward or something?
With pyqt or pyside, there is an IDE for the same purpose.
@@phyoewaipaing6670
With both we still stuck with some C++ codes
I don't understand why the button argument for command=function() doesn't accept arguments like entry1 which to me seems like rather obvious use of it. Or getting a valid text from the entry1.
You can just use lambdas
Menu bars do not exist in this module....tkinter integration with code works but menu is not affected by the theme...hence it remains white in a dark themed window. Other than making menu by yourself using buttons, do you have any suggestions?
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 ?
This is GOATED! Thank you sm. Never stop making videos!
I never thought I'd learn python from Nacho Varga
Progress bar connected to a slider sounds pretty dope.
very useful and practical
now it's more simple to build projects with modern GUI
i have an issue with root.geometry(). i get an error that says "attribute error: 'str' object has no attribute '_reverse_geometry_scaling'
Very clear and to the point, thanks!
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
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.
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
this is where C# makes GUI building so much easier
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
Can you tell us a link to the code in the video on GitHub?
I couldn't find it on your GitHub.
I have made a application with custumtkinter python , when it changes a screen we can see how it is changes , like each frame comes and changes its position until final position takes, within 1 sec
Thanks to you I've created my first GUI "app" :D
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
For me text_font was changed to font in customtkinter
10:25 how do i get that
Good day, how do you create or use the TreeView in Customtkinter? Is there a replacement for TreeView?
Fantastic content! Look forward to seeing more!
This is really helpful!. Thanks a lot for all explanation:)
This is what i was waiting for.
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.
Help, please! I am new to Python. When running the program, I get the error that module customtkinter is not found yet the install shows that it is there and is satisfied. Running Python 3.12 in Visual Studio Code. ModuleNotFoundError: No module named 'customtkinter'
This occurs at the import line.
Open a terminal, and type "pip install customtkinter".
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?
Isn't there a graphical interface for creating the GUI objects like say, with C#, in Visual Studio?
Yeah, or at least some declarative way to describe the UI? This reminds me of writing ActionScript in 2003.
QT Designer can do this.
This was so helpful. Thank you very much 😯
Excellent tutorial! Thank you!
This looks so f*ing good! 👍👏
I built a GUI and I have an input widget, .CTk, and a output widget, CTkTopLevel. I use CTKLabel to get the data to the screen. How can I print the data on the screen to a printer? It's the CTkTopLevel screen.
Can you give us an exemple of code using treeview and sqlite3. A simple window showing how to use treeview. Headings, columns. Thanks
Great video! Is it possible to create a 'datepicker' using customtkinter?
Nicely explained, right to the point!!
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.. .🙏
Please try to update the code files and the links in the description as soon as possible.
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.
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
Thanks that is such a boost to my tkinter app I am building. Now it doesn't look like Windows 2000 anymore ❤
kinda got bored and stumbled upon this very nice video i love python
amazing! we need more videos on python GUI
how would i go about adding my own graphics as well ? ex: logo?
Thank you so much for this. I just suscribed, your channel looks very good
What about its comparison with ttkbootstrap ? Which one would you suggest ? No doubt this looks good, but looking for a suggestion.
this interface is astonishing
I literally can't imagine my code journey without NeuralNine LDB
Let's Develop Brains
This really helped me out, thank you
hello mr kindly tell about that how to keep the console screen open after the program ends
can i use customTkinter to sell some desktop apps?
How do you know all that? You understand the concept? or you have a pre ready sheet?
Could you please upload your code to the repository ? I couldn't find it.
Nice guide as usual !
Bu şimdiye kadarki en iyi video
having problem with the customtkinter on my pycharm editor " no found module 'customtkinter' "
nice video, works just like the original and looks great!
"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!"
Brother can you make a detailed/brief video on MatplotLib in Pyqt5 in OOP way ?
May god bless your family. Very useful video. 🙏
That was amazing. Saving for later.
I bought your book in amazon, grrrr! Unfortunately the package was damage and they cancelled it. I’ve been waiting for it.
YES its so simple thanks so much. now i can make a gui for my wallpaper setter
do you have any condition of copyright to use it ? :)
Does Python has a graphical IDE that you can just draw the UI like Visual Studios?