text_box.width = 50 slider = Slider(app) slider.width = 300 slider.height = 30 button = PushButton(app) button.width = 20 button.height = 2 pic = Picture(app, image="guizero.gif") pic.width = 400 pic.height = 50 combo = Combo(app, ["martin", "laura", "rik"]) combo.width = 50 combo.height = 2 check = CheckBox(app, "tick me") check.width = 17 check.height = 2 button_group = ButtonGroup(app, ["cheese", "onion", "crisps"], 1) button_group.width = 35 button_group.height = 9 button_group.bg = "darkgrey" box = Box(app) box.width = 100 box.height = 100
def Stop(): robot.stop() app = App() slider = Slider(app, command=slider_changed) textbox = TextBox(app) instructions = Text(app, text="Choose a forward speed") combo = Combo(app, options=[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1], command=you_chose_forward) combo.width = 60 combo.height = 5 result = Text(app) instructions = Text(app, text="Choose a backward speed") combo = Combo(app, options=[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1], command=you_chose_backward) combo.width = 60 combo.height = 5 result = Text(app) Turtle_button = PushButton(app, command=Turtle, text="Turtle") Turtle_button.width = 20 Turtle_button.height = 10