peter-alert/peter.py

21 lines
483 B
Python
Raw Normal View History

2021-06-19 02:15:32 -04:00
from tkinter import *
from PIL import ImageTk, Image
root = Tk()
root.title("Peter Alert")
root.geometry("330x150")
root.wm_resizable(False, False)
2021-06-19 17:32:26 -04:00
root.iconbitmap("res/peter.ico")
2021-06-19 02:15:32 -04:00
body = Frame(root)
body.place(relx=0.5, rely=0.5, anchor=CENTER)
2021-06-19 17:32:26 -04:00
peter_pic = image=ImageTk.PhotoImage(Image.open("res/peter.png"))
2021-06-19 02:15:32 -04:00
peter = Label(body, image=peter_pic)
peter.grid(sticky="news")
2021-06-19 12:57:49 -04:00
OK_button = Button(body, text="OK", command=root.destroy)
2021-06-19 02:15:32 -04:00
OK_button.grid(pady=(20,0))
root.mainloop()