etherlab/ConfigEditor.py
changeset 2375 cfa68a06a24d
parent 2371 f1f10ceb9341
child 2379 015b724c30a5
equal deleted inserted replaced
2374:aed3ca79a10a 2375:cfa68a06a24d
    24 from util.BitmapLibrary import GetBitmap
    24 from util.BitmapLibrary import GetBitmap
    25 from controls.CustomStyledTextCtrl import NAVIGATION_KEYS
    25 from controls.CustomStyledTextCtrl import NAVIGATION_KEYS
    26 
    26 
    27 # -----------------------------------------------------------------------
    27 # -----------------------------------------------------------------------
    28 from EtherCATManagementEditor import EtherCATManagementTreebook, MasterStatePanelClass
    28 from EtherCATManagementEditor import EtherCATManagementTreebook, MasterStatePanelClass
       
    29 from util.TranslationCatalogs import NoTranslate
    29 # -----------------------------------------------------------------------
    30 # -----------------------------------------------------------------------
    30 
    31 
    31 [ETHERCAT_VENDOR, ETHERCAT_GROUP, ETHERCAT_DEVICE] = range(3)
    32 [ETHERCAT_VENDOR, ETHERCAT_GROUP, ETHERCAT_DEVICE] = range(3)
    32 
    33 
    33 
    34 
    37     else:
    38     else:
    38         parent.Append(helpString=help, id=id, kind=kind, item=text)
    39         parent.Append(helpString=help, id=id, kind=kind, item=text)
    39 
    40 
    40 
    41 
    41 def GetVariablesTableColnames(position=False):
    42 def GetVariablesTableColnames(position=False):
    42     _ = lambda x : x
    43     _ = NoTranslate
    43     colname = ["#"]
    44     colname = ["#"]
    44     if position:
    45     if position:
    45         colname.append(_("Position"))
    46         colname.append(_("Position"))
    46     return colname + [_("Name"), _("Index"), _("SubIndex"), _("Type"), _("Access")]
    47     return colname + [_("Name"), _("Index"), _("SubIndex"), _("Type"), _("Access")]
    47 
    48 
   333 
   334 
   334 CIA402NodeEditor = NodeEditor
   335 CIA402NodeEditor = NodeEditor
   335 
   336 
   336 
   337 
   337 def GetProcessVariablesTableColnames():
   338 def GetProcessVariablesTableColnames():
   338     _ = lambda x : x
   339     _ = NoTranslate
   339     return ["#", _("Name"),
   340     return ["#", _("Name"),
   340             _("Read from (nodeid, index, subindex)"),
   341             _("Read from (nodeid, index, subindex)"),
   341             _("Write to (nodeid, index, subindex)"),
   342             _("Write to (nodeid, index, subindex)"),
   342             _("Description")]
   343             _("Description")]
   343 
   344 
   455         message.ShowModal()
   456         message.ShowModal()
   456         message.Destroy()
   457         message.Destroy()
   457 
   458 
   458 
   459 
   459 def GetStartupCommandsTableColnames():
   460 def GetStartupCommandsTableColnames():
   460     _ = lambda x : x
   461     _ = NoTranslate
   461     return [_("Position"), _("Index"), _("Subindex"), _("Value"), _("Description")]
   462     return [_("Position"), _("Index"), _("Subindex"), _("Value"), _("Description")]
   462 
   463 
   463 
   464 
   464 class StartupCommandDropTarget(wx.TextDropTarget):
   465 class StartupCommandDropTarget(wx.TextDropTarget):
   465 
   466