Class e.p.p.w.s.Style(gobject.GObject):

Part of elisa.plugins.pigment.widgets.style View In Hierarchy

A very simple and dynamic style object.

Just a set of properties (object attributes) and a reference to the widget owning it. When changed, a property emit the 'property-changed' signal.

Instance Variableswidgetthe widget owning the style (type: elisa.plugins.pigment.widgets.Widget )
Line # Kind Name Docs
39 Method __init__ Initialize the style object with the given properties
59 Method __setattr__ Set the property's value, emitting a 'property-changed' signal
77 Method widget__set Undocumented
83 Method widget__get Undocumented
88 Method update Merge in-place the properties of another style.
92 Method merge Merge the properties of another style and returns a new one.
119 Method __iter__ Undocumented
122 Method get_properties The list of set properties.
131 Method get_items The dictionary of properties => property values.
140 Method __repr__ Undocumented
143 Method __deepcopy__ Undocumented
def __init__(self, **kwargs):
Initialize the style object with the given properties
Parameterskwargsthe properties dictionary (type: dictionary )
def __setattr__(self, key, value):
Set the property's value, emitting a 'property-changed' signal
Parameterskeythe property to set (type: the string )
valuethe property's value (type: any )
def widget__set(self, value):
Undocumented
def widget__get(self):
Undocumented
def update(self, other):
Merge in-place the properties of another style.
def merge(self, other, inplace=True):
Merge the properties of another style and returns a new one.

The new style will have all the properties of the current style, with replaced values from the second, plus further properties coming from the other style.

Parametersotherthe style to merge (type: elisa.plugins.pigment.widgets.Style )
inplacewhether to build another style, or update the current one (type: bool )
Returnsthe new style (type: elisa.plugins.pigment.widgets.Style )
def __iter__(self):
Undocumented
def get_properties(self):
The list of set properties.
Returnsthe list of set properties (type: list of strings )
def get_items(self):
The dictionary of properties => property values.
Returnsthe dictionary of properties (type: dict )
def __repr__(self):
Undocumented
def __deepcopy__(self, memo):
Undocumented
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.