Edit and remove devices from menu now
This commit is contained in:
10
classes/custom/messagebox.py
Normal file
10
classes/custom/messagebox.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# from typing import Union
|
||||
# from ttkthemes import ThemedTk
|
||||
|
||||
# from classes.custom.toplevel_dialog import ToplevelDialog
|
||||
|
||||
|
||||
# def askyesno(parent: ThemedTk, title: Union[str, None], message: Union[str, None]):
|
||||
|
||||
# toplevel = ToplevelDialog(parent, length=250, width=150)
|
||||
# toplevel.grab_set()
|
39
classes/custom/toplevel_dialog.py
Normal file
39
classes/custom/toplevel_dialog.py
Normal file
@@ -0,0 +1,39 @@
|
||||
# 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)
|
Reference in New Issue
Block a user