I was trying to create a WB from scratch, but documentation on the Wiki, is incomplete and simply copying examples (modifying the correct things) is not working.
QT_TR_NOOP_.... give some errors.
Code: Select all
class My_Command_Class():
"""My new command"""
def GetResources(self):
return {'Pixmap' : 'My_Command_Icon', # the name of a svg file available in the resources
'Accel' : "Shift+S", # a default shortcut (optional)
'MenuText': QT_TR_NOOP("My New Command"),
'ToolTip' : QT_TR_NOOP("What my new command does")}
Code: Select all
class MyWorkbench (Workbench):
MenuText = "My Workbench"
ToolTip = "A description of my workbench"
Icon = """paste here the contents of a 16x16 xpm icon"""
I could cope with these things.
But to reduce frustration of new users, some "reasonable working" code should be put in pages that "teach users to do things".
Regards
Carlo D.