Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- import winsound
- om = False
- def above():
- if om == True:
- om = False
- def below():
- if om == False:
- om = True
- while om == True:
- winsound.PlaySound("aqua.wav", winsound.SND_ASYNC)
- # main window
- window = Tk()
- window.title("Aqua Gy")
- window.configure(background="white")
- # Above Water row 1
- Button(window, text="ar0c0", width=5, height=2, bg="white", fg="white", command=above) .grid(row=0, column=0, stick=W)
- Button(window, text="ar0c1", width=5, height=2, bg="white", fg="white", command=above) .grid(row=0, column=1, stick=W)
- Button(window, text="ar0c2", width=5, height=2, bg="white", fg="white", command=above) .grid(row=0, column=2, stick=W)
- Button(window, text="ar0c3", width=5, height=2, bg="white", fg="white", command=above) .grid(row=0, column=3, stick=W)
- Button(window, text="ar0c4", width=5, height=2, bg="white", fg="white", command=above) .grid(row=0, column=4, stick=W)
- Button(window, text="ar0c5", width=5, height=2, bg="white", fg="white", command=above) .grid(row=0, column=5, stick=W)
- Button(window, text="ar0c6", width=5, height=2, bg="white", fg="white", command=above) .grid(row=0, column=6, stick=W)
- Button(window, text="ar0c7", width=5, height=2, bg="white", fg="white", command=above) .grid(row=0, column=7, stick=W)
- Button(window, text="ar0c8", width=5, height=2, bg="white", fg="white", command=above) .grid(row=0, column=8, stick=W)
- Button(window, text="ar0c9", width=5, height=2, bg="white", fg="white", command=above) .grid(row=0, column=9, stick=W)
- # Above Water row 2
- Button(window, text="ar1c0", width=5, height=2, bg="white", fg="white", command=above) .grid(row=1, column=0, stick=W)
- Button(window, text="ar1c1", width=5, height=2, bg="white", fg="white", command=above) .grid(row=1, column=1, stick=W)
- Button(window, text="ar1c2", width=5, height=2, bg="white", fg="white", command=above) .grid(row=1, column=2, stick=W)
- Button(window, text="ar1c3", width=5, height=2, bg="white", fg="white", command=above) .grid(row=1, column=3, stick=W)
- Button(window, text="ar1c4", width=5, height=2, bg="white", fg="white", command=above) .grid(row=1, column=4, stick=W)
- Button(window, text="ar1c5", width=5, height=2, bg="white", fg="white", command=above) .grid(row=1, column=5, stick=W)
- Button(window, text="ar1c6", width=5, height=2, bg="white", fg="white", command=above) .grid(row=1, column=6, stick=W)
- Button(window, text="ar1c7", width=5, height=2, bg="white", fg="white", command=above) .grid(row=1, column=7, stick=W)
- Button(window, text="ar1c8", width=5, height=2, bg="white", fg="white", command=above) .grid(row=1, column=8, stick=W)
- Button(window, text="ar1c9", width=5, height=2, bg="white", fg="white", command=above) .grid(row=1, column=9, stick=W)
- # waterline label row 3
- Label(window, text="~~~~", bg="white", fg="blue", font="none 12 bold") .grid(row=2, column=0, sticky=W)
- Label(window, text="~~~~", bg="white", fg="blue", font="none 12 bold") .grid(row=2, column=1, sticky=W)
- Label(window, text="~~~~", bg="white", fg="blue", font="none 12 bold") .grid(row=2, column=2, sticky=W)
- Label(window, text="~~~~", bg="white", fg="blue", font="none 12 bold") .grid(row=2, column=3, sticky=W)
- Label(window, text="~~~~", bg="white", fg="blue", font="none 12 bold") .grid(row=2, column=4, sticky=W)
- Label(window, text="~~~~", bg="white", fg="blue", font="none 12 bold") .grid(row=2, column=5, sticky=W)
- Label(window, text="~~~~", bg="white", fg="blue", font="none 12 bold") .grid(row=2, column=6, sticky=W)
- Label(window, text="~~~~", bg="white", fg="blue", font="none 12 bold") .grid(row=2, column=7, sticky=W)
- Label(window, text="~~~~", bg="white", fg="blue", font="none 12 bold") .grid(row=2, column=8, sticky=W)
- Label(window, text="~~~~", bg="white", fg="blue", font="none 12 bold") .grid(row=2, column=9, sticky=W)
- # Under Water Row 4
- Button(window, text="ur4c0", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=4, column=0, stick=W)
- Button(window, text="ur4c1", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=4, column=1, stick=W)
- Button(window, text="ur4c2", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=4, column=2, stick=W)
- Button(window, text="ur4c3", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=4, column=3, stick=W)
- Button(window, text="ur4c4", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=4, column=4, stick=W)
- Button(window, text="ur4c5", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=4, column=5, stick=W)
- Button(window, text="ur4c6", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=4, column=6, stick=W)
- Button(window, text="ur4c7", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=4, column=7, stick=W)
- Button(window, text="ur4c8", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=4, column=8, stick=W)
- Button(window, text="ur4c9", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=4, column=9, stick=W)
- # Under Water Row 5
- Button(window, text="ur5c0", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=5, column=0, stick=W)
- Button(window, text="ur5c1", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=5, column=1, stick=W)
- Button(window, text="ur5c2", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=5, column=2, stick=W)
- Button(window, text="ur5c3", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=5, column=3, stick=W)
- Button(window, text="ur5c4", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=5, column=4, stick=W)
- Button(window, text="ur5c5", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=5, column=5, stick=W)
- Button(window, text="ur5c6", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=5, column=6, stick=W)
- Button(window, text="ur5c7", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=5, column=7, stick=W)
- Button(window, text="ur5c8", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=5, column=8, stick=W)
- Button(window, text="ur5c9", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=5, column=9, stick=W)
- # Under Water Row 6
- Button(window, text="ur6c0", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=6, column=0, stick=W)
- Button(window, text="ur6c1", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=6, column=1, stick=W)
- Button(window, text="ur6c2", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=6, column=2, stick=W)
- Button(window, text="ur6c3", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=6, column=3, stick=W)
- Button(window, text="ur6c4", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=6, column=4, stick=W)
- Button(window, text="ur6c5", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=6, column=5, stick=W)
- Button(window, text="ur6c6", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=6, column=6, stick=W)
- Button(window, text="ur6c7", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=6, column=7, stick=W)
- Button(window, text="ur6c8", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=6, column=8, stick=W)
- Button(window, text="ur6c9", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=6, column=9, stick=W)
- # Under Water Row 7
- Button(window, text="ur7c0", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=7, column=0, stick=W)
- Button(window, text="ur7c1", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=7, column=1, stick=W)
- Button(window, text="ur7c2", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=7, column=2, stick=W)
- Button(window, text="ur7c3", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=7, column=3, stick=W)
- Button(window, text="ur7c4", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=7, column=4, stick=W)
- Button(window, text="ur7c5", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=7, column=5, stick=W)
- Button(window, text="ur7c6", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=7, column=6, stick=W)
- Button(window, text="ur7c7", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=7, column=7, stick=W)
- Button(window, text="ur7c8", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=7, column=8, stick=W)
- Button(window, text="ur7c9", width=5, height=2, bg="blue", fg="blue", command=below) .grid(row=7, column=9, stick=W)
- # mainloop
- window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement