SyncTk/classes/custom/toplevel_dialog.py

39 lines
1.0 KiB
Python
Raw Normal View History

2023-01-25 15:01:13 +02:00
# import sv_ttk
# from classes.custom.themed_frame import ThemedFrame
# from classes.custom.themed_toplevel import ThemedToplevel
# from modules.theme_titlebar import theme_title_bar
# from modules.utils import resize_window, set_icon, use_dark_mode
# class ToplevelDialog(ThemedToplevel):
# def __init__(self, parent, length: int, width: int):
# super().__init__(parent)
# resize_window(self, length, width)
# self.overrideredirect(True)
# self.resizable(False, False)
# sv_ttk.init_theme(self)
# if use_dark_mode():
# theme_title_bar(self, mode="dark")
# self.update()
# set_icon(self)
# self.focus_set()
# self.grid_columnconfigure(0, weight=1)
# self.window_frame = ThemedFrame(self)
# self.window_frame.grid(column=0, row=0, sticky=NSEW)
# # self.window_frame["borderwidth"] = 1
# # self.window_frame["relief"] = "solid"
# self.window_frame.grid_columnconfigure(0, weight=1)