Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Tkinter import*
- from tkMessageBox import*
- Interface = Tk()
- def Restaurant_Info():
- showinfo('Info','Restaurant: lalala\nPhone Number: 010101010\nAddress: ggwp')
- def SignUp():
- SignUp = Toplevel()
- SignUp.title("Cyber Roll")
- SignUp.geometry("450x200")
- Greeting=Label(SignUp,text="Cyber Roll - Sign Up")
- Greeting.place(x=20,y=0)
- username = Label(SignUp,text="Username: ")
- username.place(x=20,y=40)
- username_input = Entry(SignUp,width=45)
- username_input.place(x=140,y=40)
- password = Label(SignUp,text="Password: ")
- password.place(x=20,y=70)
- password_input = Entry(SignUp,width=45,show="*")
- password_input.place(x=140,y=70)
- passconfirm = Label(SignUp,text="Confirm Password: ")
- passconfirm.place(x=20,y=100)
- passconfirm_input = Entry(SignUp,width=45,show="*")
- passconfirm_input.place(x=140,y=100)
- sign_up = Button(SignUp,width=15,text="Sign Up",command=SignUp.destroy)
- sign_up.place(x=220,y=130)
- def Menu():
- Interface.withdraw()
- Menu = Toplevel()
- Menu.title("Cyber Roll")
- Menu.geometry("300x200")
- Title = Label(Menu,text="Cyber Roll - Menu")
- Title.place(x=20,y=0)
- halal = Checkbutton(Menu,text="Halal",)
- halal.place(x=20,y=40)
- non_halal = Checkbutton(Menu,text="Non - Halal",)
- non_halal.place(x=20,y=70)
- ppl_num=Label(Menu,text="Number of People: ")
- ppl_num.place(x=20,y=100)
- ppl_num_input = Entry(Menu,width=20)
- ppl_num_input.place(x=130,y=100)
- Roll = Button(Menu,width=15,text="Roll",command=Menu2)
- Roll.place(x=100,y=140)
- def Menu2():
- Menu2 = Toplevel()
- Menu2.title("Cyber Roll")
- Menu2.geometry("500x200")
- title = Label(Menu2,text="Cyber Roll - Menu")
- title.place(x=20,y=0)
- Rec_Restaurant = Label(Menu2,text="Recommended Restaurant: ")
- Rec_Restaurant.place(x=20,y=40)
- Rec_Restaurant_input = Entry(Menu2,width=45)
- Rec_Restaurant_input.place(x=180,y=40)
- Vote = Label(Menu2,text="Vote to Reroll: ")
- Vote.place(x=20,y=70)
- Vote_input = Entry(Menu2,width=45)
- Vote_input.place(x=180,y=70)
- Restaurantinfo = Button(Menu2,text="Resturant\n info",width = 15,command=Restaurant_Info)
- Restaurantinfo.place(x=80,y=120)
- Reroll = Button(Menu2,text="Re-Roll\n",width = 15,state=DISABLED)
- Reroll.place(x=200,y=120)
- Accept = Button(Menu2,text="Accept\n",width = 15,command=Interface.destroy)
- Accept.place(x=320,y=120)
- def Login():
- Interface.title ("Cyber Roll")
- Interface.geometry("400x200")
- Hello=Label(Interface,text="Welcome to Cyber Roll")
- Hello.place(x=160,y=0)
- username = Label(Interface,text="Username: ")
- username.place(x=20,y=40)
- username_input = Entry(Interface,width=45)
- username_input.place(x=100,y=40)
- password = Label(Interface,text="Password: ")
- password.place(x=20,y=70)
- password_input = Entry(Interface,width=45,show="*")
- password_input.place(x=100,y=70)
- login = Button(Interface,width=15,text="Login",command=Menu)
- login.place(x=70,y=100)
- sign_up = Button(Interface,width=15,text="Sign Up",command=SignUp)
- sign_up.place(x=270,y=100)
- Login()
- Interface.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement