Holy Cr*p lois its peter alert

This commit is contained in:
array-in-a-matrix 2021-06-19 02:15:32 -04:00
parent d664762d1b
commit 5a76aabb70
3 changed files with 19 additions and 0 deletions

19
peter.py Normal file
View file

@ -0,0 +1,19 @@
from tkinter import *
from PIL import ImageTk, Image
root = Tk()
root.title("Peter Alert")
root.geometry("330x150")
root.wm_resizable(False, False)
body = Frame(root)
body.place(relx=0.5, rely=0.5, anchor=CENTER)
peter_pic = image=ImageTk.PhotoImage(Image.open("src/peter.png"))
peter = Label(body, image=peter_pic)
peter.grid(sticky="news")
OK_button = Button(body, text="OK")
OK_button.grid(pady=(20,0))
root.mainloop()

BIN
src/peter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
src/source_image.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB