omnitrix-app/ben10.py

27 lines
509 B
Python
Raw Normal View History

2021-04-27 03:17:12 -04:00
from tkinter import *
root = Tk()
root.title("Omnitrix")
2021-04-27 03:47:11 -04:00
root.attributes('-fullscreen', True)
2021-04-27 03:17:12 -04:00
count = 0
2021-04-27 03:47:11 -04:00
2021-04-27 03:17:12 -04:00
def count_up():
global count
count += 1
print(count)
2021-04-27 03:47:11 -04:00
2021-04-27 03:17:12 -04:00
root.geometry("640x480")
root.configure(bg="#70b607")
omnitrix = PhotoImage(file="omnitrix.png")
omnitrix_button = Button(root, image=omnitrix, bg="#70b607",
activebackground='#70b607', highlightthickness=0, bd=0, command=count_up)
omnitrix_button.place(relx=0.5, rely=0.5, anchor=CENTER)
2021-04-27 03:47:11 -04:00
root.mainloop()