formated code and enabled fullscreen
This commit is contained in:
parent
0fde618157
commit
9a889388ae
1 changed files with 7 additions and 5 deletions
12
ben10.py
12
ben10.py
|
@ -4,7 +4,7 @@ from functions import *
|
|||
root = Tk()
|
||||
|
||||
root.title("Omnitrix")
|
||||
# root.attributes('-fullscreen', True)
|
||||
root.attributes('-fullscreen', True)
|
||||
|
||||
root.geometry("640x480")
|
||||
root.configure(bg="#70b607")
|
||||
|
@ -18,15 +18,17 @@ omnitrix_button = Button(root, image=omnitrix_screen, bg="#70b607",
|
|||
omnitrix_button.place(relx=0.5, rely=0.5, anchor=CENTER)
|
||||
|
||||
|
||||
omnitrix_left = Button(root, text="<", fg="white", bg="black" ,command=count_down, highlightthickness=0, bd=0, height = 40, width= 4)
|
||||
omnitrix_right = Button(root, text=">", fg="white", bg="black" ,command=count_up, highlightthickness=0, bd=0, height = 40, width= 4)
|
||||
omnitrix_left = Button(root, text="<", fg="white", bg="black",
|
||||
command=count_down, highlightthickness=0, bd=0, height=40, width=4)
|
||||
omnitrix_right = Button(root, text=">", fg="white", bg="black",
|
||||
command=count_up, highlightthickness=0, bd=0, height=40, width=4)
|
||||
|
||||
omnitrix_left.pack(side="left")
|
||||
omnitrix_right.pack(side="right")
|
||||
|
||||
|
||||
quit_button = Button(root, text="X", fg="white",command=root.destroy, highlightthickness=0, bd=0, width= 7)
|
||||
quit_button = Button(root, text="X", fg="white", bg="black",
|
||||
command=root.destroy, highlightthickness=0, bd=0, width=7)
|
||||
quit_button.pack(side="bottom")
|
||||
|
||||
root.mainloop()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue