forked from Vijay-Gunwant/BankManagement-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHomePage.py
More file actions
49 lines (39 loc) · 1.49 KB
/
Copy pathHomePage.py
File metadata and controls
49 lines (39 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import tkinter
from tkinter import *
def toLogin(Home):
Home.destroy()
from LoginPage import Login_Create
Login_Create()
def toSignup(Home):
Home.destroy()
from CreateAccount import SignUp
SignUp()
def Home_Creator():
# Useful Variables
BackgroundColor = "#c6cdcf"
ButtonColor = "#c8dbde"
Home_Page = tkinter.Tk()
# Window Setting
Home_Page.geometry("500x500")
Home_Page.resizable(False, False)
Home_Page.title("Realities Bank - Home Page")
Home_Page.iconbitmap("./Images/bank.ico")
Home_Page.config(bg=BackgroundColor)
# Logo Of Bank
logo = PhotoImage(file="Images/BankLogo.png")
BankLogo = Label(image=logo, bg=BackgroundColor)
BankLogo.place(x=30, y=0)
# Login Button
ButtonImage1 = PhotoImage(file="Images/login.png")
Login = Button(image=ButtonImage1, bg=BackgroundColor, cursor="hand2", bd=0,
relief=FLAT, activebackground=BackgroundColor, command=lambda: toLogin(Home_Page))
Login.place(x=160, y=220)
# Signup Label
SignupLabel = Label(text="Don't have an account?", font="Roboto 15 bold", bg=BackgroundColor)
SignupLabel.place(x=120, y=280)
# Signup Button
ButtonImage2 = PhotoImage(file="Images/signup.png")
Login = Button(image=ButtonImage2, font="Roboto 20 bold", bg=BackgroundColor, cursor="hand2", bd=0,
relief=FLAT, activebackground=BackgroundColor, command=lambda: toSignup(Home_Page))
Login.place(x=150, y=310)
Home_Page.mainloop()