controls/PouInstanceVariablesPanel.py
changeset 1742 92932cd370a4
parent 1740 b789b695b5c6
child 1749 d73b64672238
equal deleted inserted replaced
1741:dd94b9a68c61 1742:92932cd370a4
   138         self.Bind(wx.EVT_BUTTON, self.OnDebugButtonClick,
   138         self.Bind(wx.EVT_BUTTON, self.OnDebugButtonClick,
   139                 self.DebugButton)
   139                 self.DebugButton)
   140 
   140 
   141         self.VariablesList = CustomTreeCtrlWithRightImage(self,
   141         self.VariablesList = CustomTreeCtrlWithRightImage(self,
   142               style=wx.SUNKEN_BORDER,
   142               style=wx.SUNKEN_BORDER,
   143               agwStyle=CT.TR_NO_BUTTONS|
   143               agwStyle=CT.TR_NO_BUTTONS              |
   144                        CT.TR_SINGLE|
   144                        CT.TR_SINGLE                  |
   145                        CT.TR_HAS_VARIABLE_ROW_HEIGHT|
   145                        CT.TR_HAS_VARIABLE_ROW_HEIGHT |
   146                        CT.TR_HIDE_ROOT|
   146                        CT.TR_HIDE_ROOT               |
   147                        CT.TR_NO_LINES|
   147                        CT.TR_NO_LINES                |
   148                        getattr(CT, "TR_ALIGN_WINDOWS_RIGHT", CT.TR_ALIGN_WINDOWS))
   148                        getattr(CT, "TR_ALIGN_WINDOWS_RIGHT", CT.TR_ALIGN_WINDOWS))
   149         self.VariablesList.SetIndent(0)
   149         self.VariablesList.SetIndent(0)
   150         self.VariablesList.SetSpacing(5)
   150         self.VariablesList.SetSpacing(5)
   151         self.VariablesList.DoSelectItem = lambda *x, **y: True
   151         self.VariablesList.DoSelectItem = lambda *x, **y: True
   152         self.VariablesList.Bind(CT.EVT_TREE_ITEM_ACTIVATED,
   152         self.VariablesList.Bind(CT.EVT_TREE_ITEM_ACTIVATED,