etherlab/ConfigEditor.py
branchsvghmi
changeset 3246 0e8dbc2c390e
parent 2643 b98d9e08231f
child 3303 0ffb41625592
equal deleted inserted replaced
3245:c441181247cf 3246:0e8dbc2c390e
    29 # -----------------------------------------------------------------------
    29 # -----------------------------------------------------------------------
    30 from etherlab.EtherCATManagementEditor import EtherCATManagementTreebook, MasterStatePanelClass
    30 from etherlab.EtherCATManagementEditor import EtherCATManagementTreebook, MasterStatePanelClass
    31 # -----------------------------------------------------------------------
    31 # -----------------------------------------------------------------------
    32 
    32 
    33 [ETHERCAT_VENDOR, ETHERCAT_GROUP, ETHERCAT_DEVICE] = range(3)
    33 [ETHERCAT_VENDOR, ETHERCAT_GROUP, ETHERCAT_DEVICE] = range(3)
    34 
       
    35 
       
    36 def AppendMenu(parent, help, id, kind, text):
       
    37     if wx.VERSION >= (2, 6, 0):
       
    38         parent.Append(help=help, id=id, kind=kind, text=text)
       
    39     else:
       
    40         parent.Append(helpString=help, id=id, kind=kind, item=text)
       
    41 
    34 
    42 
    35 
    43 def GetVariablesTableColnames(position=False):
    36 def GetVariablesTableColnames(position=False):
    44     _ = NoTranslate
    37     _ = NoTranslate
    45     colname = ["#"]
    38     colname = ["#"]