25 lines
746 B
Python
25 lines
746 B
Python
import tkinter as tk
|
|
|
|
|
|
class InitialView(tk.Frame):
|
|
"""
|
|
This class is the first rendered view of the application. This offers the options to Login or sign Up
|
|
"""
|
|
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_to_login_view()
|
|
|
|
def on_signin(self):
|
|
self.master.change_to_sing_in_view() |