Module SettingsChooser :: Class WidgetFactory
[hide private]
[frames] | no frames]

Class WidgetFactory

source code

object --+
         |
        WidgetFactory

Widget factory for creating gtk views for AEState.Setting objects. Has one public method for creating new widgets. All other methods are protected for internally handling widget events and updating their correspoding settings.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_isCycle(self, setting)
Detects duplicate notifications of setting changes.
source code
 
_boolWidgetChange(self, widget, setting) source code
 
_boolSettingChange(self, state, setting, widget) source code
 
_numericWidgetChange(self, adj, setting) source code
 
_numericSettingChange(self, state, setting, widget) source code
 
_filenameWidgetChange(self, widget, setting) source code
 
_filenameSettingChange(self, state, setting, widget) source code
 
_stringWidgetChange(self, widget, event, setting) source code
 
_stringSettingChange(self, state, setting, widget) source code
 
_choiceWidgetChange(self, widget, setting) source code
 
_choiceSettingChange(self, state, setting, widget) source code
 
_colorWidgetChange(self, widget, setting) source code
 
_colorSettingChange(self, state, setting, widget) source code
 
create(self, setting) source code

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

Instance Variables [hide private]
AEState.Setting last_setting
Last setting object to change.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

_isCycle(self, setting)

source code 
Detects duplicate notifications of setting changes. This can be caused by a pygtk widget changing, updating a setting, and then getting renotified by the setting about the change. It can also occur when the setting changes, updates the widget, and the widget tries to update the setting again.
Parameters:
  • setting (AEState.Setting) - Setting which is about to change or has changed value

Instance Variable Details [hide private]

last_setting

Last setting object to change. Used to prevent cyclic notification between widgets and setting objects.
Type:
AEState.Setting