示例#1
0
def main():
    """This script combines the LoginView and AppView windows to create an application login. It starts the AppView to the user providing a username = 1 and password = 1.
    """
    while True:
        login = LoginView(widget_width=252)
        if (login.username == "1") and (login.password == "1"):
            break
        else:
            mb.showerror("Incorrect Login.",
                         "You have entered an incorrect login.")
            login.destroy()

    login.destroy()
    AppView("My Application", widget_width=400)
示例#2
0
from appview import AppView

win_app = AppView()
win_app.mainloop()