-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui_main.py
63 lines (40 loc) · 1.62 KB
/
gui_main.py
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
## Home Page ##
# -*- coding: utf-8 -*-ss
"""
Created on Sat May 8 11:11:41 2021
@author: Сухас Дхолз
"""
from tkinter import *
import tkinter as tk
from PIL import Image ,ImageTk
from tkinter.ttk import *
from pymsgbox import *
root=tk.Tk()
root.title("Personality Prediction")
w,h = root.winfo_screenwidth(),root.winfo_screenheight()
bg = Image.open("C:/Users/GTekSD/Desktop/Personality_Prediction/Background_and_Images/bg1.jpg")
bg.resize((1800,800),Image.ANTIALIAS)
print(w,h)
bg_img = ImageTk.PhotoImage(bg)
bg_lbl = tk.Label(root,image=bg_img)
bg_lbl.place(x=0,y=93)
#, relwidth=1, relheight=1)
w = tk.Label(root, text="Personality Prediction",width=40,background="#00BFFF",height=2,font=("Times new roman",23,"bold"))
w.place(x=0,y=15)
w,h = root.winfo_screenwidth(),root.winfo_screenheight()
root.geometry("%dx%d+0+0"%(w,h))
root.configure(background="#00BFFF")
from tkinter import messagebox as ms
def Login():
from subprocess import call
call(["python","login1.py"])
def Register():
from subprocess import call
call(["python","registration.py"])
wlcm=tk.Label(root,text="......Welcome to Personality Prediction System ......",width=90,height=3,background="#00BFFF",foreground="black",font=("Times new roman",22,"bold"))
wlcm.place(x=0,y=620)
d2=tk.Button(root,text="Login",command=Login,width=9,height=2,bd=0,background="#00BFFF",foreground="black",font=("times new roman",18,"bold"))
d2.place(x=1200,y=18)
d3=tk.Button(root,text="Register",command=Register,width=9,height=2,bd=0,background="#00BFFF",foreground="black",font=("times new roman",18,"bold"))
d3.place(x=1300,y=18)
root.mainloop()