Methods
|
|
|
|
__del__
|
__del__ ( self )
removes and deletes the handle
|
|
__init__
|
__init__ (
self,
canvas,
report_function,
values,
)
creates a new handle
|
|
add_handle
|
add_handle ( self )
adds the handle to a canvas
|
|
bind_handle
|
bind_handle ( self )
binds the events
|
|
create_items
|
create_items ( self )
creates the necessary items, must be configured by set_values
|
|
cursor_change
|
cursor_change (
self,
item,
cursor=None,
)
changes the mouse pointer to another cursor
if no cursor is given, bindings are removed
|
|
end_move_event
|
end_move_event ( self, event )
event handler for release event
|
|
get_values
|
get_values ( self )
get values from actual handle position
|
|
mouse_enters_handle
|
mouse_enters_handle (
self,
event,
cursor,
)
change cursor to predefined cursor
|
|
mouse_leaves_handle
|
mouse_leaves_handle ( self, event )
change cursor to default cursor
|
|
move_event
|
move_event ( self, event )
event handler for moving this handle
|
|
remove_handle
|
remove_handle ( self, canvas )
remove the handle from the canvas, unbinds the events
|
|
report
|
report ( self, reason )
call report function
|
|
set_values
|
set_values ( self, values )
set position of handle from values
|
|
start_move_event
|
start_move_event ( self, event )
event handler for the first click on this handle
|
|
values_from_mouse
|
values_from_mouse ( self, event )
calcualte values from mouse position and care of constraints
|