17 lines
379 B
Python
17 lines
379 B
Python
import tkinter as tk
|
|
|
|
|
|
class AppWindow:
|
|
def __init__(self,width,height,title="AppWindow"):
|
|
self.root = tk.Tk()
|
|
self.root.title(title)
|
|
self.root.geometry(f"{width}x{height}")
|
|
def run(self):
|
|
self.init_widgets()
|
|
self.root.mainloop()
|
|
self.root.close()
|
|
def init_widgets(self):
|
|
pass
|
|
def close(self):
|
|
pass
|