forked from ateistemes/applicationzzt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopening.py
More file actions
36 lines (25 loc) · 872 Bytes
/
Copy pathopening.py
File metadata and controls
36 lines (25 loc) · 872 Bytes
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
from tkinter import *
from tkinter import messagebox
from PIL import ImageTk, Image
# tk window initialization
root = Tk()
root.title("Yes/No")
root.iconbitmap(r'images/converted-icon.ico')
root.geometry('750x450')
'''root.eval('tk::PlaceWindow . center')'''
# Variable initialization
bg = PhotoImage(file=r"images/font.png")
start_btm_image = PhotoImage(file=r"images/start.png")
# Starting window
label = Label(root, image=bg, bg='#0f0f0f')
label.place(x=0, y=0, relwidth=1, relheight=1)
'''text = Label(root, text='Let\'s play', font=('Helvetica', 20))
text.pack(pady=200)'''
# Functions
def start():
response = messagebox.showinfo("instructions", "info")
# Buttons
start_btm = Button(root, image=start_btm_image,command=start(), borderwidth=0,bg='#0f0f0f' )
start_btm.pack(pady=15, side=BOTTOM)
'''root.bind('<Configure>', resizer)'''
root.mainloop()