예제 #1
0
    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))
예제 #2
0
 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()
예제 #3
0
파일: code_property.py 프로젝트: nyimbi/SPE
    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))
예제 #4
0
    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))