No video

Modern GUI with Python - Tkinter Modern Desktop App [For Beginners]

  Рет қаралды 59,103

Code First with Hala

Code First with Hala

Күн бұрын

Modern GUI / desktop app with Python and Tkinter. Use the custom Tkinter library to create a modern GUI.
Learn Tkinter and Tkinter for GUI design. Learn how to launch and create your first GUI for Python programs and desktop applications.
In this tutorial, you will:
- Learn about Tkinter and Customtkinter
- Install Customtkinter
- Use labels, buttons, entries in Tkinter
- Make a responsive interface with Tkinter
Source code: github.com/codefirstio/modern...
Timestamps:
00:00 Introduction and demo
01:20 Installing customtkinter
02:35 Creating the interface
05:30 Creating the title label
09:28 Creating the scrollable frame
10:47 Creating the button
11:56 Adding the insert functionality
Socials:
My email: code.first.io@gmail.com
Tiktok: / hala.codes
*************
*Tags*
Modern Tkinter
Modern Python GUI
Modern GUI Python
Customtkinter
Tkinter tutorial
Tkinter Data Entry
Data Entry form Tkinter
Tkinter install
Tkinter Setup
Tkinter GUI tutorial
GUI tutorial Python
GUI Project Python
Graphical User Interface Python
Python tutorial
Tkinter widgets

Пікірлер: 78
@gnfielies
@gnfielies Жыл бұрын
Thank you for a brilliant tutorial, love your work. However mine did not turn to dark mode. Interested in deleting todo task or tick boxing it. 😀
@codefirstwithhala
@codefirstwithhala Жыл бұрын
Should've mentioned that the theme will look like your system by default! i.e. mine has dark mode so it was dark mode by default. To change it, here's what you can do: ctk.set_appearance_mode("system") -> this is the default value; it will match your system ctk.set_appearance_mode("dark") -> for dark mode always ctk.set_appearance_mode("light") -> for light mode always Will pin this :)
@gnfielies
@gnfielies Жыл бұрын
@@codefirstwithhala thank you very much, you just amazing. Applied the code and I got dark mode. ❤️
@codefirstwithhala
@codefirstwithhala Жыл бұрын
Perfect =D
@josh9917
@josh9917 Жыл бұрын
The last time I commented on your channel, I was in the process of building an Airline Ticket System using Python tkinter. Fast forward and I have been able to complete the project. Now I am making use of Java to build another program which I will complete in a few months. Thank you for your help during that period.
@JavaMike71
@JavaMike71 Жыл бұрын
Awesome tutorial. You are one of the very few who really explains what is going on in great detail and I appreciate that. Keep doing the amazing work 🙂
@Native_love
@Native_love Жыл бұрын
3:10 I have watched 4 or 5 videos on tkinter and you are the first one to say this! EXCELLENT Explanations! ❤❤❤
@voblizz999
@voblizz999 Жыл бұрын
This video really impressed me. The way that you're able to demonstrate tkinter while also clearly explaining what each line of code does is so valuable!! Keep it up
@user-ub3vy8rj4d
@user-ub3vy8rj4d 11 ай бұрын
Tack så mycket. Tydligt och mycket användbart. Lycka till. Thanks so much. Clear and very useful. Good luck.
@OriginalRed5
@OriginalRed5 Жыл бұрын
You are a very good instructor... This was easy to understand!
@RohitSingh-b2l
@RohitSingh-b2l 27 күн бұрын
I love your videos, literally no one can explain it as better as you could. thanks for all of your tutorials....💖💖❤❤💖💖
@marcobachini3130
@marcobachini3130 Жыл бұрын
Your explanations always extremely clear and to the point 👏👏
@tua7582
@tua7582 Жыл бұрын
As always, a nice tutorial! Albeit a somewhat strange design choice: Most desktop developers would have chosen a CTkTextbox instead of the CTkScrollableFrame and placed the CTkEntry above it. That is way more resource-friendly, and also solves the issue your solution has with scrolling, as your entry can scroll out of view (as shown in your video).
@pingmetal
@pingmetal Жыл бұрын
That's another good way of doing it. One main difference would be that a CTkTextbox is editable. If you want to be able to freely edit any text in the box then that'd be a better choice, however if you fear accidentally selecting and deleting text, the CTkScrollableFrame seems better.
@RohitSingh-b2l
@RohitSingh-b2l 27 күн бұрын
thanks for all your videos and tutorials...i literally love your videos, you explain the best ❤❤💖💖
@ee-shan5125
@ee-shan5125 Жыл бұрын
thanks for the detailed video . hoping for more of these in upcoming time
@PogoDigitalism
@PogoDigitalism Жыл бұрын
extremely good and well explained tutorial. thank you so much helped me a lot with understanding how to lay out elements
@autarroy
@autarroy Жыл бұрын
I like the way you are explain everything step by step love your explanation
@SiTheMon777
@SiTheMon777 Жыл бұрын
That was so useful. Thankyou Hala
@iamliam1241
@iamliam1241 Жыл бұрын
It's always a pleasure to watch your videos.
@codefirstwithhala
@codefirstwithhala Жыл бұрын
Thank you for watching!
@maxfrischdev
@maxfrischdev 8 ай бұрын
thank you Hala :-)
@EmmanuelRojasAngeles-tg7ss
@EmmanuelRojasAngeles-tg7ss Жыл бұрын
Your awesome, the clarity when it comes to explanation is on point.
@5krus
@5krus 3 ай бұрын
Great tutorial lady
@kabirasif9567
@kabirasif9567 Жыл бұрын
Lethal, brain with beauty 😍 Wish, we would talk, go outside, do adventures, hv coffee ☕ 📲
@alhassanmusah7242
@alhassanmusah7242 10 ай бұрын
Awesome
@nuruljanah9621
@nuruljanah9621 3 ай бұрын
Thanks so much for this wonderful lecture, how can I select and delete from the list in the scrollable frame. Thanks once again.
@JorgeGomez-bw3zy
@JorgeGomez-bw3zy 4 күн бұрын
Thanks, very good tutorial. Do you have more videos using 'customtkinter'?
@_renzy_
@_renzy_ Жыл бұрын
I appreciate the quality of your tutorials and the way you teach (just awesome)... I have one question -> If I want to store that todo list items somewhere eg. local storage, So it will be there, when we relaunch the application... How to add this functionality in todo app
@ddabrahim
@ddabrahim Жыл бұрын
It was a really nice and simple tutorial. One question, can you make it so the entry widget always stay on top and doesn't scroll? I like the design to overlap the scroll view but I don't want the entry to scroll. Thanks.
@papito-qf2jj
@papito-qf2jj Жыл бұрын
thank you Hala it is a great work , if you don't mind how can I make add work with the enter button from keyboard
@natervaternone2020
@natervaternone2020 5 ай бұрын
Great tutorial! Can you tell me what theme you are using for VSCode? That is really clean and I love the color scheme
@jorgeleon9442
@jorgeleon9442 Жыл бұрын
Please create a series of CustomTkinter videos for the most common widgets 🙏
@jorgeleon9442
@jorgeleon9442 Жыл бұрын
Hello Hana, thanks for such a nice video. I want to create a button that cleans the scrollable_frame. Could you help us with that? Thanks a lot.
@kevinmakumbe
@kevinmakumbe 6 ай бұрын
Good job Hala, how do you center the window when you run coz it seems not to work in customtkinter?
@blazexiytb
@blazexiytb Жыл бұрын
alternative for frame class from basic tkinter? I'd like to update a script that used tkinter
@3DPrintedEngineer
@3DPrintedEngineer Жыл бұрын
nice
@kabirasif9567
@kabirasif9567 Жыл бұрын
I would be a programming dragon if u was here earlier.
@mayorc
@mayorc Жыл бұрын
If you import tkinter as tk and ctk, can you convert a tk app to ctk just by searching for tk and replacing it with ctk, and CTk prefix for widgets?
@MuhammadAhmed-nc9pb
@MuhammadAhmed-nc9pb Жыл бұрын
Brilliant as usual , I have an issue It is Light not dark even when I imported sv_ttk library .. is there any solution for that??
@user-pj6fh7co7s
@user-pj6fh7co7s Жыл бұрын
thanks
@TheCrazyblader
@TheCrazyblader 7 ай бұрын
Can u please tell me how i can delete this label form the scrollbar again? would be nice to know! i tried so many things and dont get it...
@ritwikgiri7972
@ritwikgiri7972 4 ай бұрын
@codefirstwithhala Thank you very much for this excellent tutorial. Its been really helpful! While following the process i got stuck in a problem- CTkScrollableFrame, how can i make the scrollbar to stick to the end of input/printed lable automatically? so that i can see the latest entry log/output/print as soon as i hit the button. I have tried 'scrollable_frame._parent_canvas.yview_moveto(1)' -but it didn't work for me . Can you please help with this?
@atheri0_n
@atheri0_n Жыл бұрын
Hey Hala, thats amazing and easy tutorial. But i am having trouble with error; " AttributeError: partially initialized module 'customtkinter' has no attribute 'CTk' (most likely due to a circular import). Did you mean: 'ctk'? " I installed customtkinter right and imported as ctk too but i still get the error message. Will be great if you would help. Thank you
@abmastergaming
@abmastergaming 6 ай бұрын
Bro did you find the solution? Because in my device it shows the same error message
@novicetech1
@novicetech1 8 ай бұрын
Hi Hala (or anyone). Great tutorial. I am new to this. I've been struggling trying to figure out how to clear or reset the screen (scrollable frame). Any suggestions? Thanks. Figured this out. I moved the entry field above the scrollable frame and then destroyed the widgets on the scrollable frame from a command in a 'clear entries' button I placed at the bottom of the screen. If there is a better way to do this, please let me know. Thanks.
@TheCrazyblader
@TheCrazyblader 7 ай бұрын
Thanks! i needed this
@contraplano3157
@contraplano3157 Жыл бұрын
it is possible to change the theme like in pysimplegui? example: sg.theme('Dark Amber 5')
@codefirstwithhala
@codefirstwithhala Жыл бұрын
The themes available are dark-blue, blue, and green. You can change it using this line of code: ctk.set_default_color_theme("dark-blue")
@SkuliX1337
@SkuliX1337 Жыл бұрын
Hi I am building the same app from scratch but i'm stuck on delete future how i can implement this
@arshdeepsingh6570
@arshdeepsingh6570 Жыл бұрын
Cn you share the name of your VSCode Theme. I liked it
@richard_jacqueline
@richard_jacqueline 10 ай бұрын
need to update for python 3.12. customtkinter seems to be missing things on the newer python
@marcobachini3130
@marcobachini3130 Жыл бұрын
I installed customtkinter and everything worked fine but as soon as I try to use the directory "import customtkinter" I receive an error message by VS Code like "module doesn't exist". Do you have any clues on how to solve the problem? Thanks
@crunckNATIon
@crunckNATIon 8 ай бұрын
same here was having an issue...i had to install packaging...i used google-fu so hopefully it helps you pip install packaging
@itzdampsandwich6383
@itzdampsandwich6383 Жыл бұрын
how do you change the background color with customtkinter. I tried using .config but this isnt supported. though it would work the same as in tkinter, cna you please help?
@chrisandersen5292
@chrisandersen5292 Жыл бұрын
customtkinter.set_appearance_mode("Dark")
@user-hz1jw3sb8k
@user-hz1jw3sb8k 5 ай бұрын
Hi, it's impossible CTk is not knowldged . . . i uninstalled custom// tkinter better :c, thanks watching video.
@liamcain18
@liamcain18 Жыл бұрын
i am getting module 'customtkinter' has no attribute 'CTkScrollableFrame', everthing else is fine until this point. I am running 3.11.0 in vs code.
@codefirstwithhala
@codefirstwithhala Жыл бұрын
Hi Liam. This is the documentation for the CTkScrollableFrame github.com/TomSchimansky/CustomTkinter/wiki/CTkScrollableFrame It should not be affected by your version. Please make sure there's no typos or things like that. Let me know if you're still getting the error
@liamcain18
@liamcain18 Жыл бұрын
Thank you Hala. I had not made any typos, I copied the full class from the git hub you supplied but still received the same error. I uninstalled my customtkinter: 'uninstalled customtkinter-5.0.3'. I then reinstalled: 'Successfully installed customtkinter-5.1.2.' So i was using an older version. It now works, so i can get back with the tutorial. Thanks again.
@kabirasif9567
@kabirasif9567 Жыл бұрын
How to change background color of window here ?
@chrisandersen5292
@chrisandersen5292 Жыл бұрын
customtkinter.set_appearance_mode("Dark")
@georgecarlinismytribe
@georgecarlinismytribe Жыл бұрын
Hi - I keep getting: AttributeError: module 'customtkinter' has no attribute 'CTk' Any ideas?
@tua7582
@tua7582 Жыл бұрын
Most likely a typo - Python is case-sensitive. Typing something like 'root = ctk.Ctk()' will cause the error you describe. Usually, when Python displays this, it also adds a suggestion on how to correct it. Did you ignore that?
@georgecarlinismytribe
@georgecarlinismytribe Жыл бұрын
@@tua7582 Hi - thanks for the suggestion. I'm using the exact code supplied in the github link. I can't see any typos. Visual Studio Code doesn't suggest any corrections or fixes. ###### import customtkinter as ctk def add_todo(): todo = entry.get() label = ctk.CTkLabel(scrollable_frame, text=todo) label.pack() entry.delete(0, ctk.END) root = ctk.CTk() root.geometry("750x450") root.title("Todo App") title_label = ctk.CTkLabel(root, text="Daily Tasks", font=ctk.CTkFont(size=30, weight="bold")) title_label.pack(padx=10, pady=(40, 20)) scrollable_frame = ctk.CTkScrollableFrame(root, width=500, height=200) scrollable_frame.pack() entry = ctk.CTkEntry(scrollable_frame, placeholder_text="Add todo") entry.pack(fill="x") add_button = ctk.CTkButton(root, text="Add", width=500, command=add_todo) add_button.pack(pady=20) root.mainloop() ###### Visual Studio Code response: AttributeError: module 'customtkinter' has no attribute 'CTk' .
@georgecarlinismytribe
@georgecarlinismytribe Жыл бұрын
Ok - I had to use 'pip3 install customtkinter --upgrade' via command Prompt to update my current installation. Everything works fine now.
@dombomb4147
@dombomb4147 11 ай бұрын
my dark mode doesn't work :(
@dombomb4147
@dombomb4147 11 ай бұрын
does now!
@user-se9ej9ww6f
@user-se9ej9ww6f Жыл бұрын
Why does it say name ctk not defined
@pingmetal
@pingmetal Жыл бұрын
You forgot to add the line "import customtkinter as ctk".
@forex_zone
@forex_zone Жыл бұрын
do people still use tkinter ?
@pingmetal
@pingmetal Жыл бұрын
Yes
@ellis2156
@ellis2156 Жыл бұрын
'Promosm'
@TomasSchertel
@TomasSchertel Жыл бұрын
In my opinion, the problem is that these apps with tkinter are still very ugly when run on Linux. They look good just on Windows. Sadly.
Modern Tkinter GUIs with Themes - Modern Python GUI
6:07
Code First with Hala
Рет қаралды 79 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 27 МЛН
Алексей Щербаков разнес ВДВшников
00:47
I use Drag and Drop to build modern Python Apps
14:08
Softlinks
Рет қаралды 63 М.
Convert GUI App to Real Program -  Python to exe to setup wizard
23:27
Python Simplified
Рет қаралды 506 М.
Make Tkinter Look 10x Better in 5 Minutes (CustomTkinter)
4:40
TurbineThree
Рет қаралды 268 М.
JPEG is Dying - And that's a bad thing
8:09
2kliksphilip
Рет қаралды 223 М.
Use a Drag & Drop Editor to Make Tkinter Python GUI Applications!
11:16
Python GUI Development With PySimpleGUI
15:15
Real Python
Рет қаралды 1 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 27 МЛН