etherlab/ConfigEditor.py
branchsvghmi
changeset 3249 7b19c363ef9c
parent 3246 0e8dbc2c390e
child 3303 0ffb41625592
equal deleted inserted replaced
3247:7282b40374b0 3249:7b19c363ef9c
    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 = ["#"]