Package elisa :: Package plugins :: Package bad :: Package poblenou_frontend :: Package poblenou_widgets :: Module player_osd :: Class PlayerOsd
[hide private]
[frames] | no frames]

Class PlayerOsd

source code


Nested Classes [hide private]

Inherited from pgm.graph.group.Group: __metaclass__

Instance Methods [hide private]
 
__init__(self, canvas, layer, playing_length, width, height, bar_bg_image, bar_fg_image, background_image) source code
 
playing_length__set(self, length)
Set the length of the playing media (in milliseconds)
source code
 
playing_length__get(self)
Get the length of the playing media (in milliseconds)
source code
 
title__set(self, title)
Set the title of the dock
source code
 
title__get(self)
Get the current title of the dock
source code
 
time__set(self, position)
Set the time position to position
source code
 
time__get(self)
Get the current time position
source code
 
_conv_secs(self, sec, format)
This returns a converted string of the seconds in the given format (which must be a string that is usable for time.strftime()) If the intelligent_mode was swichted on and there was the word "days" in format it is replaced with the number of weeks and days
source code
 
_show_time(self) source code
 
conversion_string__set(self, string)
Set the conversion string for the time to string...
source code
 
conversion_string__get(self)
Returns the string that is currently used to parse in time.strftime
source code
 
time_layout__set(self, layout)
Set how the time should be shown
source code
 
time_layout__get(self)
Get the currently used time layout
source code

Inherited from dock.Dock: connect, hide, image_from_path, is_visible, show

Inherited from dock.Dock (private): _cancel_timer

Inherited from pgm.graph.group.Group: absolute_opacity_factor__get, absolute_position__get, add, canvas__get, canvas__set, children__get, empty, height__get, height__set, opacity__get, opacity__set, parent__get, position__get, position__set, regenerate, remove, size__get, size__set, visible__get, visible__set, width__get, width__set, x__get, x__set, y__get, y__set, z__get, z__set

Inherited from pgm.graph.group.Group (private): _proxy_child_signal, _set_visibility_from_parent

Inherited from gobject.GObject: __cmp__, __delattr__, __gdoc__, __gobject_init__, __hash__, __new__, __repr__, __setattr__, chain, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from object: __getattribute__, __reduce__, __reduce_ex__, __str__

Static Methods [hide private]

Inherited from pgm.graph.group.Group: __classinit__

Class Variables [hide private]

Inherited from pgm.graph.group.Group: __gsignals__, __gtype__

Properties [hide private]
  conversion_string
Returns the string that is currently used to parse in time.strftime
  playing_length
Get the length of the playing media (in milliseconds)
  time
Get the current time position
  time_layout
Get the currently used time layout
  title
Get the current title of the dock

Inherited from pgm.graph.group.Group: absolute_opacity_factor, absolute_position, canvas, children, height, opacity, parent, position, size, visible, width, x, y, z

Inherited from gobject.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, canvas, layer, playing_length, width, height, bar_bg_image, bar_fg_image, background_image)
(Constructor)

source code 
Overrides: dock.Dock.__init__

title__set(self, title)

source code 
Set the title of the dock
Parameters:
  • title (string) - the name of a movie or a audio file

conversion_string__set(self, string)

source code 

Set the conversion string for the time to string
@param string: a string that could be parsed by time.strftime
if there is none given, the player dock is set in the intelligent
    mode, and trys to guess what format is usefull


Property Details [hide private]

conversion_string

Returns the string that is currently used to parse in time.strftime
Get Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.player_osd.PlayerOsd.conversion_string__get(self) - Returns the string that is currently used to parse in time.strftime
Set Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.player_osd.PlayerOsd.conversion_string__set(self, string) - Set the conversion string for the time to string...
Delete Method:
'frontend'

playing_length

Get the length of the playing media (in milliseconds)
Get Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.player_osd.PlayerOsd.playing_length__get(self) - Get the length of the playing media (in milliseconds)
Set Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.player_osd.PlayerOsd.playing_length__set(self, length) - Set the length of the playing media (in milliseconds)
Delete Method:
'frontend'

time

Get the current time position
Get Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.player_osd.PlayerOsd.time__get(self) - Get the current time position
Set Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.player_osd.PlayerOsd.time__set(self, position) - Set the time position to position
Delete Method:
'frontend'

time_layout

Get the currently used time layout
Get Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.player_osd.PlayerOsd.time_layout__get(self) - Get the currently used time layout
Set Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.player_osd.PlayerOsd.time_layout__set(self, layout) - Set how the time should be shown
Delete Method:
'frontend'

title

Get the current title of the dock
Get Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.player_osd.PlayerOsd.title__get(self) - Get the current title of the dock
Set Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.player_osd.PlayerOsd.title__set(self, title) - Set the title of the dock
Delete Method:
'frontend'