buttons move with respect to window size
This commit is contained in:
parent
67f94f2e26
commit
c9f87b3e4f
1 changed files with 4 additions and 2 deletions
6
ben10.py
6
ben10.py
|
@ -8,11 +8,11 @@ root.title("Omnitrix")
|
|||
# root.attributes('-fullscreen', True)
|
||||
root.geometry("640x480")
|
||||
root.configure(bg="#70b607")
|
||||
root.columnconfigure(1, weight=1)
|
||||
root.rowconfigure(1, weight=1)
|
||||
# root window parameters
|
||||
|
||||
|
||||
# grid to hold buttons
|
||||
|
||||
path = "res/omnitrix.png"
|
||||
img = ImageTk.PhotoImage(Image.open(path))
|
||||
|
||||
|
@ -43,6 +43,8 @@ omnitrix_left = Button(root, text="<", fg="white", bg="black",
|
|||
command=lambda: count_down(omnitrix_button), highlightthickness=0, bd=0, height=30, width=4)
|
||||
# omnitrix_left.pack(side="left")
|
||||
omnitrix_left.grid(column=0, row=1, rowspan=3)
|
||||
|
||||
|
||||
# changes alien button (left)
|
||||
|
||||
omnitrix_right = Button(root, text=">", fg="white", bg="black",
|
||||
|
|
Loading…
Add table
Reference in a new issue