State_player Module

class State_player.Player_state(state)[source]

Class containing all parameters required to run a player This class should only be instanciated inside a Player class

change_playing(dest=None)[source]

Set the player to dest if specified, switch if not

get_current_channel()[source]
get_current_frame(zoom=1, depth=8)[source]
get_current_index()[source]
get_current_zoom()[source]
get_raw_frame()[source]

Read a frame from buffer

process_frame()[source]
read_raw_frame(zoom=1)[source]

zoom parameter unused for the moment

set_current_channel(ch_name)[source]

Replace the current channel. The input should be a channel name

set_current_frame(f)[source]
set_current_frame_index(i)[source]

Sets the current frame

set_current_speed(s)[source]

Input is a speed index

set_current_zoom(z)[source]
set_image_click(tup)[source]

Event called when the image is clicked

set_lock(lock)[source]
set_pos(pos)[source]

Set the position of the image in the window The tuple gives the coordinates of the TOP-LEFT corner

set_window(win)[source]

Sets the dimension of the display window (in px)

switch_manual(dest=None)[source]

Function that swiches between automatic and manual playing

Previous topic

Slider Module

Next topic

Viewer Module

This Page