18 lines
551 B
Python
18 lines
551 B
Python
import tkinter as tk
|
|
|
|
class WaiterDashboard:
|
|
def __init__(self, parent):
|
|
self.parent = parent
|
|
self.frame = tk.Frame(parent)
|
|
self.frame.pack(fill="both", expand=True)
|
|
|
|
tk.Label(self.frame, text="WAITER", font=("Arial", 20, "bold")).pack(pady=20)
|
|
tk.Label(self.frame, text="(Input pesanan manual)").pack()
|
|
|
|
tk.Button(self.frame, text="Logout", command=self.logout).pack(pady=10)
|
|
|
|
def logout(self):
|
|
self.frame.destroy()
|
|
from main import LoginScreen
|
|
LoginScreen(self.parent)
|