DOCS - GladeVCP - SpeedControl - updated and corrected
Signed-off-by: Norbert Schechner <nieson@web.de>
This commit is contained in:
parent
cd91a98084
commit
755235e464
1 changed files with 10 additions and 3 deletions
|
|
@ -872,7 +872,7 @@ SpeedControl offers some hal pin:
|
||||||
|
|
||||||
It has the following properties:
|
It has the following properties:
|
||||||
|
|
||||||
size::
|
height::
|
||||||
integer
|
integer
|
||||||
The height of the widget in pixel
|
The height of the widget in pixel
|
||||||
allowed values are 24 to 96
|
allowed values are 24 to 96
|
||||||
|
|
@ -893,9 +893,15 @@ min::
|
||||||
max::
|
max::
|
||||||
float
|
float
|
||||||
The max allowed value
|
The max allowed value
|
||||||
allowed values are 0.001, 99999.0
|
allowed values are 0.001 to 99999.0
|
||||||
default is 100.0
|
default is 100.0
|
||||||
|
|
||||||
|
increment::
|
||||||
|
float
|
||||||
|
sets the applied increment per mouse click
|
||||||
|
allowed values are 0.001 to 99999.0 and -1
|
||||||
|
default is -1 resulting in 100 increments fom min to max
|
||||||
|
|
||||||
inc_speed::
|
inc_speed::
|
||||||
integer
|
integer
|
||||||
Sets the timer delay for the increment speed holding pressed the buttons
|
Sets the timer delay for the increment speed holding pressed the buttons
|
||||||
|
|
@ -939,7 +945,8 @@ Direct program control::
|
||||||
There are also python methods to modify the widget:
|
There are also python methods to modify the widget:
|
||||||
[widget name].set_adjustment(gtk-adjustment)
|
[widget name].set_adjustment(gtk-adjustment)
|
||||||
You can assign a existing adjustment to the control, that way it is easy to replace
|
You can assign a existing adjustment to the control, that way it is easy to replace
|
||||||
existing sliders without many code changes.
|
existing sliders without many code changes. Be aware, that after changing the adjustment
|
||||||
|
you may need to set a new increment, as it will be resetted to its default (100 steps from MIN to MAX)
|
||||||
[widget name].get_value()
|
[widget name].get_value()
|
||||||
Will return the counts value as float
|
Will return the counts value as float
|
||||||
[widget name].set_value(float(value))
|
[widget name].set_value(float(value))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue