-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathintropage.py
38 lines (31 loc) · 999 Bytes
/
intropage.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
from tkinter import *
import customtkinter
from PIL import ImageTk
import os
# Getting location of application data and stored in direct
direct = ""
def location(registration_number):
global final_directory
current_directory = os.getcwd()
direct += current_directory
# Importing aboutpage
def nextpg(direct):
root.destroy()
import aboutpage
aboutpage.aboutpage(direct)
# Creating a window
customtkinter.set_appearance_mode("dark")
root = Tk()
root.geometry('1366x768')
root.state('zoomed')
# Placing a background image
imgloc = os.path.join(direct, r'images\intro.png')
bgimage = ImageTk.PhotoImage(file=imgloc)
bglabel = Label(root, image=bgimage)
bglabel.place(x=0, y=0)
# Buttons
nextbutton = Button(root, text='Next', font=('Garamond', 25), fg='black', bg='#f2f2e2',
activeforeground='black', activebackground='#f2f2e8', cursor='hand2', bd=0,
command=lambda:(nextpg(direct)))
nextbutton.place(x=1075, y=560)
root.mainloop()