from guizero import App, PushButton
def pressed():
    print("button was pressed")

def message(msg):
    print(msg)
    
app = App()
button = PushButton(app, command=pressed, text='Press me')
print(button.width)
print(button.height)
button_with_args = PushButton(app, command=message, text='Say hi', args=["hi"])
app.display()