def display(self, panel): GridProperty.display(self, panel) self.btn.Hide() wx.grid.EVT_GRID_CELL_CHANGE(self.grid, self.on_change_val) tooltip = """\ You can use this property to add some extra custom properties to this widget. For each property "prop" with value "val", wxGlade will generate a \ "widget.SetProp(val)" line (or a "<prop>val</prop>" line for XRC).""" self.grid.SetToolTip(wx.ToolTip(tooltip))
def display(self, parent): GridProperty.display(self, parent) attr = wx.grid.GridCellAttr() attr.SetReadOnly(True) self.grid.SetColAttr(0, attr) self.grid.AutoSizeColumn(0, False) self.grid.AutoSizeColumn(1, False) wx.grid.EVT_GRID_CELL_CHANGE(self.grid, self.on_change_val) szr = self.panel.GetSizer() szr.Show(self.btn_sizer, False) szr.Layout()
def display(self, panel): GridProperty.display(self, panel) self.btn.Hide() wx.grid.EVT_GRID_CELL_CHANGE(self.grid, self.on_change_val) tooltip = """\ You can use this property to add some extra custom properties to this widget. For each property "prop" with value "val", wxGlade will generate a \ "widget.SetProp(val)" line (or a "<prop>val</prop>" line for XRC). NOTE: at the moment, this property is supported only by the following code \ generators: Python C++ XRC Perl""" self.grid.SetToolTip(wx.ToolTip(tooltip))