/ . / CGLtk / Hybrid.py / Logarithmic_Scale
Horizontal scale with label, entry, and slider packed into a frame.
The scale value is a power of the horizontal position. The min and max
values must both be positive. Didn't combine this into the Scale class because it requires significantly
more complexity.
Methods
|
|
|
scale_position
|
scale_position ( self, value )
|
|
set_range
|
set_range (
self,
min,
max,
)
|
|
value
|
value ( self, default=None )
|
|
callback
|
callback ( self, cb )
|
|
scale_changed_cb
|
scale_changed_cb ( self )
Synchronize entry field value with scale slider position.
|
|
entry_changed_cb
|
entry_changed_cb ( self )
Synchronize scale slider position with entry
|
|
__init__
|
__init__ (
self,
parent,
title,
min,
max,
start,
entry_format='%.0f',
entry_width=5,
)
|
|
set_value
|
set_value (
self,
value,
invoke_callbacks=1,
)
|
|
|