formated code
This commit is contained in:
parent
4de2805410
commit
6d38ca44a7
1 changed files with 5 additions and 3 deletions
8
ben10.py
8
ben10.py
|
@ -3,14 +3,16 @@ from tkinter import *
|
||||||
root = Tk()
|
root = Tk()
|
||||||
|
|
||||||
root.title("Omnitrix")
|
root.title("Omnitrix")
|
||||||
root.attributes('-fullscreen',True)
|
root.attributes('-fullscreen', True)
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
|
|
||||||
def count_up():
|
def count_up():
|
||||||
global count
|
global count
|
||||||
count += 1
|
count += 1
|
||||||
print(count)
|
print(count)
|
||||||
|
|
||||||
|
|
||||||
root.geometry("640x480")
|
root.geometry("640x480")
|
||||||
root.configure(bg="#70b607")
|
root.configure(bg="#70b607")
|
||||||
|
|
||||||
|
@ -21,4 +23,4 @@ omnitrix_button = Button(root, image=omnitrix, bg="#70b607",
|
||||||
|
|
||||||
omnitrix_button.place(relx=0.5, rely=0.5, anchor=CENTER)
|
omnitrix_button.place(relx=0.5, rely=0.5, anchor=CENTER)
|
||||||
|
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
|
|
Loading…
Add table
Reference in a new issue