# Class e.p.p.p.PigmentController(Controller, gobject.GObject):

Part of elisa.plugins.pigment.pigment_controller View In Hierarchy

Known subclasses: elisa.plugins.pigment.tests.test_pigment_frontend.TestController, elisa.plugins.poblesec.base.list.ListController, elisa.plugins.poblesec.base.list_switcher.ListSwitcherController, elisa.plugins.poblesec.browser_controller.BrowserController, elisa.plugins.poblesec.login_settings_controller.LoginResultController, elisa.plugins.poblesec.login_settings_controller.LoginSettingsController, elisa.plugins.poblesec.main.PoblesecController, elisa.plugins.poblesec.player_slideshow.SlideshowController, elisa.plugins.poblesec.player_video.PlayerController, elisa.plugins.poblesec.popup.PopupController, elisa.plugins.poblesec.search_controller.SearchController, elisa.plugins.poblesec.sections_menu.SectionsMenuController, elisa.plugins.poblesec.tests.test_browser_controller.DummyController, elisa.plugins.poblesec.tests.test_browser_controller.FakeController, elisa.plugins.poblesec.tests.test_history.BadController, elisa.plugins.poblesec.tests.test_history.FakeController, elisa.plugins.poblesec.tests.test_history.NeverEndingController, elisa.plugins.shelf.shelf_controller.ShelfController, elisa.plugins.tutorials.amazon.main_controller.MainController, elisa.plugins.weather.weather_controller.WeatherController

Specialised `elisa.core.components.controller.Controller` for the Pigment toolkit. A `PigmentController` creates a user interface in its `widget` widget using other Pigment widgets.

Instance Variables | frontend | frontend that created the controller (type: `elisa.core.components.frontend.Frontend` )
| path | path for which that controller was selected (type: `str` )
| widget | Pigment widget containing the UI of the controller (type: `elisa.plugins.pigment.widgets.widget.Widget` )
| widget_animated | implicitly animated version of `widget` (type: `pgm.timing.implicit.AnimatedObject` )

Line # | Kind | Name | Docs
--- | --- | --- | ---
48 | Method | __init__ | Undocumented
56 | Method | set_frontend | Set the frontend for the controller.
65 | Method | set_path | Set the path for the controller.
74 | Method | handle_input | Undocumented
81 | Method | has_focus | Undocumented
84 | Method | prepare | Called after `widget` is added to the canvas. It is sensible to do
91 | Method | removed | Called after `widget` is removed from the canvas.
97 | Method | clean | Clean the component.

Inherited from Component (via Controller):

Line # | Kind | Name | Docs
--- | --- | --- | ---
85 | Class | PathDescriptor | Undocumented
97 | Class Method | create | Create and initialize the component.
130 | Method | initialize | Initialize the component.

def __init__(self):
overrides elisa.core.log.Loggable.__init__
overridden in elisa.plugins.poblesec.base.list.ListController, elisa.plugins.poblesec.main.PoblesecController, elisa.plugins.poblesec.player_slideshow.SlideshowController, elisa.plugins.poblesec.player_video.PlayerController, elisa.plugins.poblesec.popup.PopupController, elisa.plugins.poblesec.tests.test_history.BadController
Undocumented
def set_frontend(self, frontend):
overridden in elisa.plugins.poblesec.base.list.ListController, elisa.plugins.poblesec.base.list_switcher.ListSwitcherController, elisa.plugins.poblesec.browser_controller.BrowserController, elisa.plugins.poblesec.login_settings_controller.LoginResultController, elisa.plugins.poblesec.login_settings_controller.LoginSettingsController, elisa.plugins.poblesec.main.PoblesecController, elisa.plugins.poblesec.player_slideshow.SlideshowController, elisa.plugins.poblesec.player_video.PlayerController, elisa.plugins.poblesec.popup.PopupController, elisa.plugins.poblesec.search_controller.SearchController, elisa.plugins.poblesec.sections_menu.SectionsMenuController, elisa.plugins.shelf.shelf_controller.ShelfController, elisa.plugins.tutorials.amazon.main_controller.MainController, elisa.plugins.weather.weather_controller.WeatherController
Set the frontend for the controller.

Parameters | frontend | frontend (type: `elisa.core.components.frontend.Frontend` )

def set_path(self, path):
overridden in elisa.plugins.poblesec.base.list_switcher.ListSwitcherController
Set the path for the controller.

Parameters | path | path (type: `str` )

def handle_input(self, input_manager, input_event):
overridden in elisa.plugins.poblesec.base.list.ListController, elisa.plugins.poblesec.base.list_switcher.ListSwitcherController, elisa.plugins.poblesec.browser_controller.BrowserController, elisa.plugins.poblesec.login_settings_controller.LoginResultController, elisa.plugins.poblesec.login_settings_controller.LoginSettingsController, elisa.plugins.poblesec.main.PoblesecController, elisa.plugins.poblesec.player_slideshow.SlideshowController, elisa.plugins.poblesec.player_video.PlayerController, elisa.plugins.poblesec.popup.PopupController, elisa.plugins.poblesec.search_controller.SearchController, elisa.plugins.poblesec.sections_menu.SectionsMenuController, elisa.plugins.poblesec.tests.test_browser_controller.FakeController, elisa.plugins.shelf.shelf_controller.ShelfController
Undocumented
def has_focus(self):
Undocumented
def prepare(self):
overridden in elisa.plugins.poblesec.base.grid.GridController, elisa.plugins.poblesec.base.list_switcher.ListSwitcherController
Called after `widget` is added to the canvas. It is sensible to do aspect ratio dependent operations at that point.

def removed(self):
overridden in elisa.plugins.poblesec.base.list.ListController, elisa.plugins.poblesec.base.list_switcher.ListSwitcherController, elisa.plugins.poblesec.sections_menu.SectionsMenuController
Called after `widget` is removed from the canvas.

def clean(self):
overrides elisa.core.component.Component.clean
overridden in elisa.plugins.poblesec.base.list_switcher.ListSwitcherController, elisa.plugins.poblesec.base.preview_list.MenuItemPreviewListController, elisa.plugins.poblesec.login_settings_controller.LoginSettingsController, elisa.plugins.poblesec.search_controller.SearchController, elisa.plugins.weather.weather_controller.WeatherController

Clean the component.

This method is called when a component is not needed anymore to clean its state.

Returns | a deferred called when the component has finished cleaning its state (type: `twisted.internet.defer.Deferred` )