SyncTk/classes/custom/themed_frame.py

15 lines
286 B
Python
Raw Normal View History

2023-01-22 21:06:55 +02:00
from tkinter import Misc
2023-01-22 18:53:55 +02:00
from tkinter.ttk import Frame
2023-01-23 01:13:30 +02:00
import sv_ttk
2023-01-22 18:53:55 +02:00
from modules.utils import get_string_mode
2023-01-23 01:13:30 +02:00
2023-01-22 18:53:55 +02:00
class ThemedFrame(Frame):
2023-01-22 21:06:55 +02:00
def __init__(self, master: Misc, **kwargs) -> None:
2023-01-22 18:53:55 +02:00
super().__init__(master, **kwargs)
sv_ttk.set_theme(get_string_mode())