Anyone help me out with what may be a simple python problem?
I’m trying to create a set of TextCommands which share a lot of behaviour. I thought I’d use inheritance, like this;
class PandocCompileCommand(sublimeplugin.TextCommand):
def run(self, view, args):
pass
class CompileToRtfCommand(PandocCompileCommand):
def run(self, view, args):
print "RTF"
class CompileToPdfCommand(PandocCompileCommand):
def run(self, view, args):
print "PDF"
problem is, these are disabled as commands. If I inherit directly ( class CompileToRtfCommand(sublimeplugin.TextCommand) ) then they are enabled.
Am I doing something dumb, or does ST require the IMMEDIATE base class to be sublimeplugin.TextCommand?
Steve