percept_simulator_2023/gui/GUIMasterGUI.py

26 lines
609 B
Python
Raw Normal View History

2023-07-31 15:23:38 +02:00
import tkinter as tk
from tkinter import ttk
class GUIMasterGUI:
my_tk_root: tk.Tk | tk.ttk.Labelframe | tk.ttk.Frame
verbose: bool = True
def __init__(
self,
tk_root: tk.Tk | tk.ttk.Labelframe | tk.ttk.Frame,
name: str,
row_id: int,
column_id: int,
data_class=None,
):
assert data_class is not None
super().__init__()
self.my_tk_root = tk_root
self.data = data_class
self.frame = ttk.LabelFrame(self.my_tk_root, text=name)
self.frame.grid(row=row_id, column=column_id, sticky="nw", pady=5)