Viewer Module

class Viewer.Viewer(player)[source]
buttonrelease_image_evt(w, event)[source]
clicked_image_evt(w, event)[source]

Function called when the image is clicked

get_viewer()[source]

Returns the panel displaying the movies .. WARNING:: This function contains an horrible hack when trying to synchronize click detection and image coordinates. Everything should be made much more cleaner by replacing nested Box() by a nice Table() that already exist bu is nested in the two Box()es

mouseover_image_evt(w, event)[source]
scroll_changed(adjustment)[source]

Called when the user scrolls the viewer

set_scale(scale)[source]
set_scroll(x, y)[source]

Function that update the corrdinates of the scrollbar (adjustments)

set_size(size)[source]

Change the size of the viewer. Size should be given as a tuple

update_coord()[source]
update_viewer()[source]

Function that updates the viewer when necessary This does not replace the ‘scroll_changed’ function

Previous topic

State_player Module

Next topic

Zoom Module

This Page