Package advene :: Package gui :: Package util
[hide private]
[frames] | no frames]

Package util

source code

GUI helper methods.

Submodules [hide private]

Functions [hide private]
 
png_to_pixbuf(png_data, width=None, height=None)
Load PNG data into a pixbuf
source code
 
image_from_position(controller, position=None, width=None, height=None) source code
 
get_small_stock_button(sid, callback=None, *p) source code
 
get_pixmap_button(pixmap, callback=None, *p) source code
 
name2color(color)
Return the gtk color for the given color name or code.
source code
 
encode_drop_parameters(**kw)
Encode the given parameters as drop parameters.
source code
 
decode_drop_parameters(data)
Decode the drop parameters.
source code
 
shaped_window_from_xpm(xpm) source code
Variables [hide private]
  color_cache = {}
  arrow_up_xpm = ['13 16 2 1', ' c None', '. c #FF000...
  arrow_right_xpm = ['16 13 2 1', '. c None', '# c #ff0000', '.....
Function Details [hide private]

encode_drop_parameters(**kw)

source code 

Encode the given parameters as drop parameters.

Returns:
a string

decode_drop_parameters(data)

source code 

Decode the drop parameters.

Returns:
a dict.

Variables Details [hide private]

arrow_up_xpm

Value:
['13 16 2 1',
 '       c None',
 '.      c #FF0000',
 '      .      ',
 '     ...     ',
 '    .....    ',
 '   .......   ',
 '  .........  ',
...

arrow_right_xpm

Value:
['16 13 2 1',
 '. c None',
 '# c #ff0000',
 '................',
 '..........#.....',
 '..........##....',
 '..........###...',
 '..........####..',
...