All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Public Member Functions | Public Attributes | Private Member Functions
face_contour_detector.gui.image_settings_frame.JumpScale Class Reference

A class that behaves like the Tkinter Scale widget but if you click on it the slider jumps to the clicked position. More...

List of all members.

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 $ \frac{Scale_{to} - Scale_{from}}{Scale_{length}} $ where $ Scale_{to}$ is the maximum value of the slider, $Scale_{from}$ the minimum value of the slider and $ Scale_{length}$ is the length of the slider

Private Member Functions

def _jump
 Methhod that makes the slider jump to the correct position.

Detailed Description

A class that behaves like the Tkinter Scale widget but if you click on it the slider jumps to the clicked position.

Author:
Fabian Wenzelmann

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.


Constructor & Destructor Documentation

def face_contour_detector.gui.image_settings_frame.JumpScale.__init__ (   self,
  master = None,
  options 
)

Constroctur method.

Parameters:
selfthe object pointer
masterTkinter master widget
optionsadditional parameters for this sliders as in the Tkinter.Scale widget

Definition at line 70 of file image_settings_frame.py.


Member Function Documentation

Methhod that makes the slider jump to the correct position.

Parameters:
selfthe object pointer
evtthe mouse event that caused the execution of this function

Definition at line 85 of file image_settings_frame.py.


Member Data Documentation

the factor that is used to calculate the position when the user clicks on the widget - the factor is defined as $ \frac{Scale_{to} - Scale_{from}}{Scale_{length}} $ where $ Scale_{to}$ is the maximum value of the slider, $Scale_{from}$ the minimum value of the slider and $ Scale_{length}$ is the length of the slider

Definition at line 70 of file image_settings_frame.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


face_contour_detector
Author(s): Fabian Wenzelmann and Julian Schmid
autogenerated on Wed Dec 26 2012 16:18:18