initial gui
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import tkinter as tk
|
||||
|
||||
|
||||
class InitialView(tk.Frame):
|
||||
def __init__(self, master=None):
|
||||
super().__init__(master)
|
||||
self.create_widgets()
|
||||
|
||||
def create_widgets(self):
|
||||
# Login Button
|
||||
login_button = tk.Button(self, text="Login", command=self.on_login)
|
||||
login_button.pack(side=tk.LEFT, padx=5)
|
||||
|
||||
# Sign In Button
|
||||
signin_button = tk.Button(self, text="Sign In", command=self.on_signin)
|
||||
signin_button.pack(side=tk.RIGHT, padx=5)
|
||||
|
||||
def on_login(self):
|
||||
self.master.change_view(self.master.login_view)
|
||||
|
||||
def on_signin(self):
|
||||
self.master.change_view(self.master.signup_view)
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user