Package mosp :: Package gui :: Module playerChamplain :: Class Player
[hide private]
[frames] | no frames]

Class Player

source code


The visual player based on libchamplain and its python bindings.

Instance Methods [hide private]
 
__init__(self, width=640, height=480, init_zoom=14, markersize=10)
Inits the Player.
source code
 
update(self)
On update, get new marker positions, update colors, ...
source code
 
key_press(self, stage, event)
Handle key presses.
source code
 
resize_actor(self, stage, box, flags)
On resize resize also this ...
source code
 
main(self)
The window, stage, marker init and so on ...
source code
 
button_pressed(self, stage, event)
On button_pressed print coordinates to console.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  screensize
size of screen/app: width and height as tuple
  init_zoom
inital zoom factor of map
  markersize
size of moving markers
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, width=640, height=480, init_zoom=14, markersize=10)
(Constructor)

source code 

Inits the Player.

Overrides: object.__init__