How to use guizero - 10 common examples

To help you get started, we’ve selected a few guizero examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lawsie / guizero / tests / test_text.py View on Github external
def test_destroy():
    a = App()
    t = Text(a)
    destroy_test(t)
    a.destroy()
github lawsie / guizero / tests / test_combo.py View on Github external
def test_display():
    a = App()
    c = Combo(a, ["foo", "bar"])
    display_test(c)
    a.destroy()
github lawsie / guizero / tests / test_text.py View on Github external
def test_text():
    a = App()
    # default values
    t = Text(a, color=None, size=None, font=None)
    text_test(t)
    a.destroy()
github lawsie / guizero / tests / test_buttongroup.py View on Github external
def test_events():
    a = App()
    b = ButtonGroup(a, ["foo", "bar"])
    events_test(b)
    a.destroy()
github lawsie / guizero / tests / test_box.py View on Github external
def test_cascading_properties():
    a = App()
    b = Box(a)
    cascading_properties_test(b)
    a.destroy()
github lawsie / guizero / tests / test_pushbutton.py View on Github external
def test_repeat_schedule():
    a = App()
    b = PushButton(a)
    schedule_repeat_test(a, b)
    a.destroy()
github lawsie / guizero / tests / test_pushbutton.py View on Github external
def test_events():
    a = App()
    p = PushButton(a)
    events_test(p)
    a.destroy()
github lawsie / guizero / tests / test_pushbutton.py View on Github external
def test_grid_layout():
    a = App(layout="grid")
    
    w = PushButton(a, grid=[1,2])
    grid_layout_test(w, 1, 2, 1, 1, None)
    
    ws = PushButton(a, grid=[1,2,3,4])
    grid_layout_test(ws, 1, 2, 3, 4, None)

    wa = PushButton(a, grid=[1,2], align="top")
    grid_layout_test(wa, 1, 2, 1, 1, "top")
    
    a.destroy()
github lawsie / guizero / tests / test_text.py View on Github external
    inherited_properties_test(a, lambda: Text(a), True)
    a.destroy()
github lawsie / guizero / tests / test_app.py View on Github external
def test_enable():
    a = App()
    t = Text(a)
    cascading_enable_test(a)
    a.destroy()