Package elisa :: Package plugins :: Package good :: Package pigment :: Module pigment_view :: Class PigmentView
[hide private]
[frames] | no frames]

Class PigmentView

source code


DOCME

Nested Classes [hide private]
  __metaclass__
Instance Methods [hide private]
 
__init__(self)
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar.
source code
 
parent__set(self, parent) source code
 
frontend_changed(self, previous_frontend, new_frontend)
Called when frontend is set to a new value.
source code
 
create_widgets(self)
DOCME
source code
 
canvas_resized(self, new_size)
DOCME
source code
 
attribute_set(self, origin, key, old_value, new_value)
Called when an attribute of the controller to which it is connected changes.
source code
 
load_from_theme(self, icon, image)
Loads an icon from the theme into a Pigment image.
source code

Inherited from base_components.view.View: clean, controller__get, controller__set, controller_changed, frontend__get, frontend__set, initialize, parent__get, update

Inherited from core.component.Component: load_config, save_config

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

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

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
  context_path = 'pigment:pigment_context'
string name = 'pigment_view'
Component's name

Inherited from base_components.view.View: bindings, supported_controllers

Inherited from core.component.Component: checked, config_doc, default_config, id, plugin

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from base_components.view.View: context_handle, controller, frontend

Inherited from core.component.Component: config, path

Properties [hide private]
elisa.base_components.view.View parent
parent view; None if the view is a root

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar. Also set log category based on component name, with a 'comp_' prefix.
Overrides: base_components.view.View.__init__

parent__set(self, parent)

source code 
Overrides: base_components.view.View.parent__set

frontend_changed(self, previous_frontend, new_frontend)

source code 

Called when frontend is set to a new value.

Override if you wish to react to that change. Do not forget to call the parent class method.
Overrides: base_components.view.View.frontend_changed
(inherited documentation)

attribute_set(self, origin, key, old_value, new_value)

source code 
Called when an attribute of the controller to which it is connected changes.
Overrides: base_components.view.View.attribute_set
(inherited documentation)

load_from_theme(self, icon, image)

source code 
Loads an icon from the theme into a Pigment image.
Parameters:
  • icon (str) - icon to load
  • image (pgm.Image) - drawable into which the icon will be loaded

Property Details [hide private]

parent

parent view; None if the view is a root
Get Method:
elisa.base_components.view.View.parent__get(self)
Set Method:
elisa.plugins.good.pigment.pigment_view.PigmentView.parent__set(self, parent)
Delete Method:
'frontend'