In a plugin
ui.py I have:
Code:
class InterfacePlugin(InterfaceAction):
name = 'Repository Links'
action_spec = (name, None, 'Link book to supplementary material', None)
But referencing
name within a
def in this same class, such as:
Code:
def show_ui(self):
:
return error_dialog(self.gui, name, 'Repository file not found', show=True)
gives error: NameError: global name 'name' is not defined.
So, how do I refer to
name within a
def?