A class that behaves like the Tkinter Scale widget but if you click on it the slider jumps to the clicked position. More...
Public Member Functions | |
def | __init__ |
Constroctur method. | |
Public Attributes | |
factor | |
the factor that is used to calculate the position when the user clicks on the widget - the factor is defined as where is the maximum value of the slider, the minimum value of the slider and is the length of the slider | |
Private Member Functions | |
def | _jump |
Methhod that makes the slider jump to the correct position. |
A class that behaves like the Tkinter Scale widget but if you click on it the slider jumps to the clicked position.
This class is made for a narrow purpose! It only works with horizontal sliders and binding an event to this widget with the bind() method does not work anymore.
Definition at line 65 of file image_settings_frame.py.
def face_contour_detector.gui.image_settings_frame.JumpScale.__init__ | ( | self, | |
master = None , |
|||
options | |||
) |
Constroctur method.
self | the object pointer |
master | Tkinter master widget |
options | additional parameters for this sliders as in the Tkinter.Scale widget |
Definition at line 70 of file image_settings_frame.py.
def face_contour_detector.gui.image_settings_frame.JumpScale._jump | ( | self, | |
evt | |||
) | [private] |
Methhod that makes the slider jump to the correct position.
self | the object pointer |
evt | the mouse event that caused the execution of this function |
Definition at line 85 of file image_settings_frame.py.
the factor that is used to calculate the position when the user clicks on the widget - the factor is defined as where is the maximum value of the slider, the minimum value of the slider and is the length of the slider
Definition at line 70 of file image_settings_frame.py.