-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
39 lines (28 loc) · 1.04 KB
/
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
from tkinter import *
import tkinter.font as font
from subprocess import call
import PyPDF2
import fitz
root = Tk()
root.title('Merge Sort Representation')
root.iconbitmap('img/logo.ico')
root.geometry('1200x675')
# Background Image
bg_set = Canvas(root, bg="gray16", height=200, width=200)
filename = PhotoImage(file="img/sort.png")
background_label = Label(root, image=filename)
background_label.place(x=0, y=0, relwidth=1, relheight=1)
# Button For the Next Screen
def clickstartbutton():
call(["python", "sortingui.py"])
def clickdocbutton():
call(["python", "documentation.py"])
buttonFont = font.Font(family='Helvetica', size=16, weight='bold')
myButton = Button(root, text="START SORTING", command=clickstartbutton, fg="blue", bg="#48C9B0", pady=10, padx=10,
font=buttonFont)
myButton.place(x=800, y=600)
docButton = Button(root, text="DOCUMENTATION", command=clickdocbutton, fg="Yellow", bg="#48C9B0", pady=10, padx=10,
font=buttonFont)
docButton.place(x=550, y=600)
bg_set.pack()
root.mainloop()