Package pyffi :: Package object_models :: Module editable :: Class EditableSpinBox
[hide private]
[frames] | no frames]

Class EditableSpinBox

source code

  object --+    
           |    
EditableBase --+
               |
              EditableSpinBox
Known Subclasses:

Abstract base class for data that can be edited with a spin box that contains an integer. Override get_editor_minimum and get_editor_maximum to set the minimum and maximum values that the spin box may contain.

Requirement: get_editor_value must return an int, set_editor_value must take an int.

Instance Methods [hide private]
any (whatever is appropriate for the particular implementation of the editor)
get_editor_value(self)
Return data as a value to initialize an editor with.
source code
 
set_editor_value(self, editorvalue)
Set data from the editor value.
source code
 
get_editor_minimum(self) source code
 
get_editor_maximum(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

get_editor_value(self)

source code 
Return data as a value to initialize an editor with. Override this method.
Returns: any (whatever is appropriate for the particular implementation of the editor)
A value for the editor.
Overrides: EditableBase.get_editor_value
(inherited documentation)

set_editor_value(self, editorvalue)

source code 
Set data from the editor value. Override this method.
Parameters:
  • editorvalue - The value of the editor.
Overrides: EditableBase.set_editor_value
(inherited documentation)