Package Camelot :: Package camelot :: Package admin :: Package form_action :: Class FormActionFromGuiFunction
[frames] | no frames]

Class FormActionFromGuiFunction

source code


Convert a function that is supposed to run in the GUI thread to a FormAction, or
Instance Methods
 
__init__(self, name, gui_function, icon=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
run(*args, **kwargs)
Overwrite this method to create an action that does something
source code

Inherited from FormAction: enabled, get_icon, get_name, render

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

Properties

Inherited from object: __class__

Method Details

__init__(self, name, gui_function, icon=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Parameters:
  • name - the name used in the button to trigger the action
  • icon - Icon to be used in the button to trigger the action
Overrides: object.__init__
(inherited documentation)

run(*args, **kwargs)

source code 
Overwrite this method to create an action that does something
Decorators:
  • @gui_function
Overrides: FormAction.run
(inherited documentation)