controls/SearchResultPanel.py
changeset 1736 7e61baa047f0
parent 1733 dea107dce0c4
child 1739 ec153828ded2
equal deleted inserted replaced
1735:c02818d7e29f 1736:7e61baa047f0
    28 import wx.lib.buttons
    28 import wx.lib.buttons
    29 import wx.lib.agw.customtreectrl as CT
    29 import wx.lib.agw.customtreectrl as CT
    30 
    30 
    31 from PLCControler import *
    31 from PLCControler import *
    32 from util.BitmapLibrary import GetBitmap
    32 from util.BitmapLibrary import GetBitmap
       
    33 
    33 
    34 
    34 def GenerateName(infos):
    35 def GenerateName(infos):
    35     if infos[0] in ["input", "output", "value"]:
    36     if infos[0] in ["input", "output", "value"]:
    36         return "%s %d:" % (infos[0], infos[1])
    37         return "%s %d:" % (infos[0], infos[1])
    37     elif infos[0] == "range":
    38     elif infos[0] == "range":
    45 #-------------------------------------------------------------------------------
    46 #-------------------------------------------------------------------------------
    46 
    47 
    47 [ID_SEARCHRESULTPANEL, ID_SEARCHRESULTPANELHEADERLABEL,
    48 [ID_SEARCHRESULTPANEL, ID_SEARCHRESULTPANELHEADERLABEL,
    48  ID_SEARCHRESULTPANELSEARCHRESULTSTREE, ID_SEARCHRESULTPANELRESETBUTTON,
    49  ID_SEARCHRESULTPANELSEARCHRESULTSTREE, ID_SEARCHRESULTPANELRESETBUTTON,
    49 ] = [wx.NewId() for _init_ctrls in range(4)]
    50 ] = [wx.NewId() for _init_ctrls in range(4)]
       
    51 
    50 
    52 
    51 class SearchResultPanel(wx.Panel):
    53 class SearchResultPanel(wx.Panel):
    52 
    54 
    53     if wx.VERSION < (2, 6, 0):
    55     if wx.VERSION < (2, 6, 0):
    54         def Bind(self, event, function, id = None):
    56         def Bind(self, event, function, id = None):