Open adamtcdev opened 6 months ago
@adamtcdev Why are you using self._apply_appearance_mode
method? It is only for distinguishing colors which are in tuple form. You simply use text_font = ThemeManager.theme["CTkFont"]["family"]
There is no official TreeView, but you can use my TreeView and use/adapt how you like it😹 https://github.com/JanPanthera/_GuiFramework/tree/main/GuiFramework/widgets/tree_view
Edit: Here an example where i use it https://github.com/JanPanthera/_AutodriveTranslationTool/blob/main/AutoDriveTranslationTool/src/components/dictionary_frame/dictionary_frame_gui.py
There is no official TreeView, but you can use my TreeView and use/adapt how you like it😹 https://github.com/JanPanthera/_GuiFramework/tree/main/GuiFramework/widgets/tree_view
Edit: Here an example where i use it https://github.com/JanPanthera/_AutodriveTranslationTool/blob/main/AutoDriveTranslationTool/src/components/dictionary_frame/dictionary_frame_gui.py
I am not sure about it...
WARNING: Skipping GuiFramework as it is not installed.
Traceback (most recent call last):
File "C:\Users\Adam\Desktop\_GuiFramework-main\setup.py", line 1, in <module>
from setuptools import setup, find_packages
ModuleNotFoundError: No module named 'setuptools'
The system cannot find the file specified.
ERROR: Invalid requirement: 'dist\\'
Hint: It looks like a path. File 'dist\' does not exist.
Press any key to continue . . .
yeah thats old, sorry the setup is not working instead you can use the update_package.bat, but this essential reinstalls every needed library, don't recommend that if you have made any changes to your ctk, if you haven't made any changes to customtkinter use it to install the GuiFramework in to your python shared libs. if someone wants to help me get a nice setup working, please help me xD
Oh, and did anyone know how to set the default font in CTk?
Oh, and did anyone know how to set the default font in CTk?
you can do that by edit one of the default themes or by creating a custom theme and load that. here is a genereal guide, if you need more help i can try to help, its a bit since i played with custom themes ;-) Themes
@adamtcdev Why are you using
self._apply_appearance_mode
method? It is only for distinguishing colors which are in tuple form. You simply usetext_font = ThemeManager.theme["CTkFont"]["family"]
I am wondering if we could make a tuple like this.
text_font = ThemeManager.theme["CTkFont"]["family"]
text_size = ThemeManager.theme["CTkFont"]["size"]
text_tuple = (text_font, text_size)
And put it in the Treeview:
treestyle.configure("Treeview", background=bg_color, foreground=text_color, fieldbackground=bg_color, font=text_tuple, borderwidth=0)
you mean the tkinter treeview? I'm not sure how styling works in plain tkinter, but can take a look.It looks interesting
CustomTkinter is a modern GUI that fits my project in my upcoming contest. But there's only one thing. I don't see any Treeview here. Anyone help? I already saw #524 but I don't know how to put the light/dark callback (
AppearanceModeTracker.add(callback)
) and use it with scale:Anyone help? Please be quick because the contest is due in 2-3 weeks.