Input Table#
- class squap.widgets.input_widget.InputTable(width, height, name, window)[source]#
-
- set_partition(
- fraction=0.3333333333333333,
Sets the position of the partition between the 2 columns of the
InputTable.- Parameters:
fraction (float) – float between
0and1, specifying the portion of the window taken up by the partition. Starts off as1/3.
- add_slider(
- name,
- init_value=1.0,
- min_value=0.0,
- max_value=10.0,
- n_ticks=51,
- tick_interval=None,
- only_ints=False,
- logscale=False,
- custom_arr=None,
- var_name=None,
- print_value=False,
- row=None,
Creates a
sliderwith the given parameters, and adds it to thisinput table. Seesquap.add_slider()for initialisation information.- Returns:
The created
slider widget.- Return type:
- add_checkbox(
- name,
- init_value=False,
- var_name=None,
- print_value=False,
- row=None,
Creates a
checkboxwith the given parameters, and adds it to thisinput table. Seesquap.add_checkbox()for initialisation information.- Returns:
The created
checkbox widget.- Return type:
- add_inputbox(
- name,
- init_value=1.0,
- type_func=None,
- var_name=None,
- print_value=False,
- row=None,
Creates an
inputboxwith the given parameters, and adds it to thisinput table. Seesquap.add_inputbox()for initialisation information.- Returns:
The created
inputbox widget.- Return type:
- add_button(
- name,
- func=None,
- row=None,
Creates a
buttonwith namenameand bound functionfunc, and adds it to thisinput table. Seesquap.add_button()for initialisation information.- Returns:
The created
button widget.- Return type:
- add_dropdown(
- name,
- options,
- init_index=0,
- option_names=None,
- var_name=None,
- print_value=False,
- row=None,
Creates a
dropdownwidget with the given parameters, and adds it to thisinput table. Seesquap.add_dropdown()for initialisation information.- Returns:
The created
dropwdown widget.- Return type:
- add_rate_slider(
- name,
- init_value=1.0,
- change_rate=10.0,
- absolute=False,
- time_var=None,
- custom_func=None,
- var_name=None,
- print_value=False,
- row=None,
Creates a
RateSliderwith the given parameters, and adds it to thisinput table. Seesquap.add_rate_slider()for initialisation information.- Returns:
The created
rate_slider widget.- Return type:
- add_color_picker(
- name,
- init_value=(255, 255, 255),
- var_name=None,
- print_value=False,
- row=None,
Creates a
ColorPickerwith the gives parameters, and adds it to thisinput table. Seesquap.add_color_picker()for initialisation information.- Returns:
The created
color_picker widget.- Return type: