SyncTk/classes/custom/themed_frame.py

14 lines
319 B
Python
Raw Normal View History

2023-01-22 18:53:55 +02:00
from ttkthemes import ThemedTk
from typing import Union
import sv_ttk
from tkinter.ttk import Frame
from modules.utils import get_string_mode
class ThemedFrame(Frame):
def __init__(self, master: ThemedTk, **kwargs) -> None:
super().__init__(master, **kwargs)
sv_ttk.set_theme(get_string_mode())