Good tutorials. But how do you get rounded corners on the widgets without seeing the white background. With windows 10 I only see the full affect of rounded corners when appearance is set to light. When it's dark then the widgets always show the corners as white.
The best way of learning CustomTkinter is that you turn all of your ugly tkinter projects into ctk ,, and some parameters has a different name ie in Buttun you have not bg= instead you have fg_color ,, this way your entire time will concentraited on just working with UI not the logic of the Program, But someone got to make something Like QT Designer , and you work your project like VISUAL C++ , you just drag and drop your elements ( pyqt has this option but its not like visual C) I mean the free version
How come code can run well the first 10 times you execute them and than all of the sudden it gives you a SyntaxError: invalid syntax? The code in question is: switch=ctk.CTkSwitch(window, text="Excercise switch", fg_color="red", progress_color="white", button_color="light blue" command=lambda:ctk.set_appearance_mode=("dark")) switch.pack() error is command=lambda:ctk.set_appearance_mode=("dark")) When I remove this it will say the error is switch.pack() anyone able to help me out it worked fine when I first wrote and tested it.....
Nice. I don't know what ttk do. Because I am learning Tkinter and didn't face with ttk yet. But what I can not understand here, why insted from tkinter import * you use import tkinter as tk? Same and with customkinter.... when I use , from tkinter import * , I don't need to say label = tk.TkLabel(), I say just label=Label(window, text="Hello")........... Or customtkinter works different?
I think it's because when you import everything that's a lot of information and it can slower you programm but if you import as tk you decide what widget or function to use, just what you need. I am french so i hope i'm understood
if you import all the libraries in a module you import 99% of things that you don't use at all and that will take a lot of memory for nothing , this way is just for learning and simplicity(see below), if you don't import customtkinter as ctk , every time that you want to use you its classes and functions you got to write the full name of the module like btn = customtkinter.CTkButton( .....) with import as you simply write ctk.CTkButton(....) when you import * then you can use like this button1 = Button(....) but you will import lots of widgets that you don't use and make your program slow and lots of other problems , instead you use this from tkinter import Button , Label , Entry If you just need these three elements you just import them and you don't have to call them like import tkinter button = tkinter.Button(....) entry = customtkinter.CTkButton(....) most of module names are long and having mixed uppercase lowercases, ie : import PySimpleGUI as sg now you can use sg to call its classes otherwise you got to write exactly PySimpleGUI.Text(-------) with P , S , GUI ( all uppercase ) you simply write sg.text other way ( mosty just used in educational purposes ) you use from PySimpleGUI import * and you are free to use text(......) but suppose you have a variable named text in your program , then you got FUCKED
Tried customtkinter on linux. Unfortunately (at least for me) the styles look absolutely hideous there. Way worse than normal tkinter. Scaling is also off. I tested this with the provider examples and with very simple widget use.
TypeError: CTkSwitch.__init__() missing 1 required positional argument: 'master' what does the mast argument do? switch = ctk.CTkSwitch(window, text="CTkSwitch", command=switch_event, variable=switch_var, onvalue="on", offvalue="off") but still says there is not master nvm i got it i was being a silly boy
This is the most complete Custom Tkinter content. I didn't know it was so customizable, thanks so much for sharing it! 🙏
Check out
Expense tracker Customtkinter project (modern GUI)
ua-cam.com/video/1p_Y_QB3c1A/v-deo.htmlsi=V0XgF8VZvO5CUxsD
Awesome tutorial!!! Is there a way to change the window image next to the window title?
Good tutorials.
But how do you get rounded corners on the widgets without seeing the white background.
With windows 10 I only see the full affect of rounded corners when appearance is set to light. When it's dark then the widgets always show the corners as white.
The best way of learning CustomTkinter is that you turn all of your ugly tkinter projects into ctk ,, and some parameters has a different name ie in Buttun you have not bg= instead you have fg_color ,, this way your entire time will concentraited on just working with UI not the logic of the Program,
But someone got to make something Like QT Designer , and you work your project like VISUAL C++ , you just drag and drop your elements ( pyqt has this option but its not like visual C) I mean the free version
Thank you so much sir for your all awesome videos...❤🎉
Bro! do you know How to set Favicon at place of CTkinter logo
Thanks for the tutorials.
Are you going to make some projects , using all this goodies, too?
Happy new year!
Yes, probably in February
Can you explain how to create a table viewer? The project creator haven't created this widget till now (2023/02/23)
Thanks, but in customtkinter there is no treeview and listbox ?
wow ... this was easier to understand
Check out
Expense tracker Customtkinter project (modern GUI)
ua-cam.com/video/1p_Y_QB3c1A/v-deo.htmlsi=V0XgF8VZvO5CUxsD
where was the api for CTk that you were showing?
👌👌👌, Good job .
Check out
Expense tracker Customtkinter project (modern GUI)
ua-cam.com/video/1p_Y_QB3c1A/v-deo.htmlsi=V0XgF8VZvO5CUxsD
Great tutorial bro, thanks
great tutorial.
how can we change icon in Customtkinter??
theres no labelframe?
thank you for you help
It hangs, if we minimise and maximize frames
how to make colored text with ctk label, like first half red second half blue?
Have you tried slicing or placing two widgets next to each other?
the powershell says that 'pip' is not recognized , what to do
make sure pip is installed
My window isn't black, even if I use .configure
mine too did you find a solution?
its good, but I noticed it feels not complete
Check out
Expense tracker Customtkinter project (modern GUI)
ua-cam.com/video/1p_Y_QB3c1A/v-deo.htmlsi=V0XgF8VZvO5CUxsD
When I run my program the window has a white background, can somebody help me?
After importing the customtkinter module, type:
customtkinter.set_appearance_mode("dark")
hello is there a way we can set ctk as fullscreen?
Check out
Expense tracker Customtkinter project (modern GUI)
ua-cam.com/video/1p_Y_QB3c1A/v-deo.htmlsi=V0XgF8VZvO5CUxsD
what exactly are you coding this in?
The language is Python. The IDE looks like Visual Studio Code
@@JaimeCastillo-o4f Well he uses sublime.
Que incrivel!
Check out
Expense tracker Customtkinter project (modern GUI)
ua-cam.com/video/1p_Y_QB3c1A/v-deo.htmlsi=V0XgF8VZvO5CUxsD
How come code can run well the first 10 times you execute them and than all of the sudden it gives you a
SyntaxError: invalid syntax?
The code in question is:
switch=ctk.CTkSwitch(window,
text="Excercise switch",
fg_color="red",
progress_color="white",
button_color="light blue"
command=lambda:ctk.set_appearance_mode=("dark"))
switch.pack()
error is command=lambda:ctk.set_appearance_mode=("dark"))
When I remove this it will say the error is
switch.pack()
anyone able to help me out it worked fine when I first wrote and tested it.....
Apparently moving the code up the chain of code it suddenly works again?!? Wtf...
Something is wrong with identation levels (how many "tabs" are in the lines with arguments). Here you forget about comma between two last arguments
@@avimir8805 I see thank you for the solution :D
Clear code second channel be like
I'm wondering if it's a second Chanel or someone just cloned the voice
@@MutanGFX Dude, he does really sound alike
@@RIXZZYTHEGAMER Totally agree. Same video style too.
Hey for me this does not work it says module 'customtkinter' has no attribute 'CTk', plz help
We would need to see your code then.
Nice. I don't know what ttk do. Because I am learning Tkinter and didn't face with ttk yet. But what I can not understand here, why insted from tkinter import * you use import tkinter as tk? Same and with customkinter....
when I use , from tkinter import * , I don't need to say label = tk.TkLabel(), I say just label=Label(window, text="Hello")...........
Or customtkinter works different?
I think it's because when you import everything that's a lot of information and it can slower you programm but if you import as tk you decide what widget or function to use, just what you need. I am french so i hope i'm understood
if you import all the libraries in a module you import 99% of things that you don't use at all and that will take a lot of memory for nothing , this way is just for learning and simplicity(see below), if you don't import customtkinter as ctk , every time that you want to use you its classes and functions you got to write the full name of the module like btn = customtkinter.CTkButton( .....) with import as you simply write ctk.CTkButton(....)
when you import * then you can use like this
button1 = Button(....)
but you will import lots of widgets that you don't use and make your program slow and lots of other problems , instead you use this
from tkinter import Button , Label , Entry
If you just need these three elements you just import them and you don't have to call them like
import tkinter
button = tkinter.Button(....)
entry = customtkinter.CTkButton(....)
most of module names are long and having mixed uppercase lowercases, ie :
import PySimpleGUI as sg
now you can use sg to call its classes otherwise you got to write exactly
PySimpleGUI.Text(-------) with P , S , GUI ( all uppercase )
you simply write
sg.text
other way ( mosty just used in educational purposes ) you use
from PySimpleGUI import *
and you are free to use
text(......)
but suppose you have a variable named text in your program , then you got FUCKED
Tried customtkinter on linux. Unfortunately (at least for me) the styles look absolutely hideous there. Way worse than normal tkinter. Scaling is also off. I tested this with the provider examples and with very simple widget use.
TypeError: CTkSwitch.__init__() missing 1 required positional argument: 'master' what does the mast argument do?
switch = ctk.CTkSwitch(window, text="CTkSwitch", command=switch_event,
variable=switch_var, onvalue="on", offvalue="off") but still says there is not master
nvm i got it i was being a silly boy