
Public Member Functions | |
| def | __init__ |
| def | get_value |
Public Attributes | |
| min | |
| max | |
| num_steps | |
| text_box | |
| slider | |
Private Member Functions | |
| def | _set_slider_value |
| def | _handle_scroll |
| def | _handle_enter |
Private Attributes | |
| _value | |
House a Slider and a Text Box for variable control.
Definition at line 152 of file callback_controls.py.
| def grc_gnuradio.wxgui.callback_controls._slider_control_base.__init__ | ( | self, | ||
| window, | ||||
| callback, | ||||
label = 'Label', |
||||
value = 50, |
||||
min = 0, |
||||
max = 100, |
||||
num_steps = 100 | ||||
| ) |
Slider contructor. Create the slider, text box, and label.
| window | the wx parent window | |
| callback | call the callback on changes | |
| label | the label title | |
| value | the default value | |
| min | the min | |
| max | the max | |
| num_steps | the number of steps |
Definition at line 155 of file callback_controls.py.
| def grc_gnuradio.wxgui.callback_controls._slider_control_base.get_value | ( | self | ) |
Get the current set value.
Reimplemented from grc_gnuradio.wxgui.callback_controls._control_base.
Definition at line 193 of file callback_controls.py.
| def grc_gnuradio.wxgui.callback_controls._slider_control_base._set_slider_value | ( | self, | ||
| real_value | ||||
| ) | [private] |
Translate the real numerical value into a slider value and, write the value to the slider.
| real_value | the numeric value the slider should represent |
Definition at line 200 of file callback_controls.py.
| def grc_gnuradio.wxgui.callback_controls._slider_control_base._handle_scroll | ( | self, | ||
event = None | ||||
| ) | [private] |
A scroll event is detected. Read the slider, call the callback.
Definition at line 209 of file callback_controls.py.
| def grc_gnuradio.wxgui.callback_controls._slider_control_base._handle_enter | ( | self, | ||
event = None | ||||
| ) | [private] |
An enter key was pressed. Read the text box, call the callback.
Definition at line 220 of file callback_controls.py.
Definition at line 169 of file callback_controls.py.
Definition at line 170 of file callback_controls.py.
Definition at line 171 of file callback_controls.py.
Definition at line 175 of file callback_controls.py.
Definition at line 181 of file callback_controls.py.
Definition at line 189 of file callback_controls.py.
1.5.4