save reference to the labeltool in the command

This commit is contained in:
Martin Baeuml
2011-06-14 19:40:13 +02:00
parent f6656cd2a3
commit 2884bd7273
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ class BaseCommand(object):
def __init__(self):
#self.style = color_style()
pass
self.labeltool = None
def usage(self, subcommand):
"""
+4
View File
@@ -161,6 +161,10 @@ class LabelTool(QObject):
else:
# TODO implement load_command_class
klass = load_command_class(app_name, subcommand)
# set labeltool reference
klass.labeltool = self
return klass
def init_from_config(self, config_module_path=""):