Package Camelot :: Package camelot :: Package admin :: Package list_action :: Class ListActionFromGuiFunction |
[frames] | no frames]

# Class ListActionFromGuiFunction

source code

Convert a function that is supposed to run in the GUI thread to a ListAction

Instance Methods
__init__(self, name, gui_function, icon=None) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
run(self, collection_getter, selection_getter) Overwrite this method to create an action that does something | source code
Inherited from `ListAction`: `render` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables
Inherited from `ListAction`: `Options`

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 Overrides: object.__init__ (inherited documentation)

### run(self, collection_getter, selection_getter) | source code
Overwrite this method to create an action that does something an object of of type Options Returns: None if there was no Options class attribute or if Cancel was pressed, otherwise Overrides: ListAction.run (inherited documentation)