Jan Görl

Results 17 comments of Jan Görl

#2302 this one too, and there you get why https://github.com/TomSchimansky/CustomTkinter/issues/2302#issuecomment-1991632556

import customtkinter as ctk def set_selection_color(ctk_textbox, bg_color, fg_color): ctk_textbox._textbox.tag_configure("sel", background=bg_color, foreground=fg_color) window = ctk.CTk() ctk_textbox = ctk.CTkTextbox(window) ctk_textbox.pack() ctk_textbox.insert("1.0", "Hello, World!") set_selection_color(ctk_textbox, bg_color="red", fg_color="white") window.mainloop() :-)

Designing your own input dialog with a Toplevel window provides greater control and the opportunity to tailor it to your needs. For reference, you might explore an example I developed...

``` def _on_delete_dictionary_file(self): """Delete the selected dictionary file.""" def callback_handler(is_confirmed): if is_confirmed: file_path = os.path.join( self.dev_path, self.get_var("dictionaries_path"), self.scroll_list_dictionaries.get_checked_entries()[0], ) file_ops.delete_file(file_path) self.scroll_list_dictionaries.remove_checked_entries() checked_entries = self.scroll_list_dictionaries.get_checked_entries() if checked_entries: self._create_popup_message_box( self.loc("confirm_delete_dic_title"), self.loc("confirm_delete_dic_msg"), callback_handler,...

``` import customtkinter def main(): window = customtkinter.CTk() window.title("Test Application") window.geometry("800x600") window.iconbitmap("TestApplication/ad_icon.ico") popup = customtkinter.CTkToplevel(window) popup.title("Popup") popup.geometry("400x300") window.after(1000, lambda: popup.iconbitmap("TestApplication/ad_icon.ico")) window.mainloop() if __name__ == "__main__": main() ``` the issue is...

I think its more a tkinter thing, since customtkinter is just a wrapper around the tkinter widgets. AND tkinter is old, really old 😹 So no wonder why some things...

pip show customtkinter will show you where ctk is installed, and os.path.join(customtkinter_directory, "assets", "icons", "CustomTkinter_icon_Windows.ico") and there it is saved then xD

can you give us a code, minimized version that reproduces this problem so we can try our selfs? without code we can't do anything, since most of us don't have...

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