TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
10.8k stars 1.03k forks source link

How to init my class for using _set_appearence_mode? #2384

Closed Sayad-Uddin-Tahsin closed 2 months ago

Sayad-Uddin-Tahsin commented 2 months ago
class MonitorWidget:
    def __init__(self, root: ctk.CTkFrame, db: dict) -> None:
        super().__init__()

def create(self):
        self.root._set_appearance_mode('light')

I want to use _set_appearence_mode for in order to change the theme for specific Frame which says requires initializing with super()! Using this code seems not changing the theme

Sayad-Uddin-Tahsin commented 2 months ago

This method seems working...