Beispiel #1
0
def construct_ui(u: Declarative.DeclarativeUI) -> Declarative.UIDescription:
    slider = u.create_slider(value="@binding(slider_value_model.value)")
    slider2 = u.create_slider(name="slider2",
                              value="vv",
                              on_value_changed="value_changed",
                              on_slider_moved="slider_moved")
    label = u.create_label(text="@binding(slider_value_model.value)")
    button = u.create_push_button(text="Reset to 50", on_clicked="reset")
    return u.create_column(slider, slider2, label, button, spacing=8)
Beispiel #2
0
def construct_ui(u: Declarative.DeclarativeUI) -> Declarative.UIDescription:
    slider = u.create_slider(value="@binding(slider_value_model.value)")
    progress_bar = u.create_progress_bar(
        value="@binding(slider_value_model.value)")
    label = u.create_label(text="@binding(slider_value_model.value)")
    button = u.create_push_button(text="Reset to 50", on_clicked="reset")
    return u.create_column(progress_bar, slider, label, button, spacing=8)