С Tkinter код будет выглядеть так: р>
Код: Выделить всё
vidbutton = tk.Button(w, text="Video", command = connectgp)
vidbutton.place(relheight=0.176, relwidth=0.176, relx=0.02, rely=0.02)
shutterbutton = tk.Button(w, text="Shutter", command = connectgp)
shutterbutton.place(relheight=0.176, relwidth=0.176, relx=0.196, rely=0.02)
Я пытаюсь реализовать это, используя guizero вместо этого с помощью следующего кода:
Код: Выделить всё
connectbutton = PushButton(app, text="Connect Gopros", command=connect)
connectbutton.tk.place(relheight=0.176, relwidth=0.176, relx=0.02, rely=0.02)
videobutton = PushButton(app, text="Video", command=video)
videobutton.tk.place(relheight=0.176, relwidth=0.176, relx=0.196, rely=0.02)
Очень запутался, совет бы помог.>
Подробнее здесь: https://stackoverflow.com/questions/716 ... pushbutton