mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
Trim trailing space samples directory
This commit is contained in:
@@ -12,7 +12,7 @@ class SimpleGrid(wx.grid.Grid):
|
||||
|
||||
self.SetCellValue(6, 3, "You can veto editing this cell")
|
||||
|
||||
|
||||
|
||||
# test all the events
|
||||
self.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK, self.OnCellLeftClick)
|
||||
self.Bind(wx.grid.EVT_GRID_CELL_RIGHT_CLICK, self.OnCellRightClick)
|
||||
@@ -81,7 +81,7 @@ class SimpleGrid(wx.grid.Grid):
|
||||
def OnGridColSort(self, evt):
|
||||
self.log.write("OnGridColSort: %s %s" % (evt.GetCol(), self.GetSortingColumn()))
|
||||
self.SetSortingColumn(evt.GetCol())
|
||||
|
||||
|
||||
def OnRowSize(self, evt):
|
||||
self.log.write("OnRowSize: row %d, %s\n" %
|
||||
(evt.GetRowOrCol(), evt.GetPosition()))
|
||||
|
||||
@@ -5,7 +5,7 @@ class TestGrid(wx.grid.Grid):
|
||||
def __init__(self, *args, **kw):
|
||||
wx.grid.Grid.__init__(self, *args, **kw)
|
||||
self.CreateGrid(25, 25)
|
||||
|
||||
|
||||
# Show some simple cell formatting
|
||||
self.SetColSize(3, 200)
|
||||
self.SetRowSize(4, 45)
|
||||
@@ -33,7 +33,7 @@ class TestGrid(wx.grid.Grid):
|
||||
|
||||
# you can set cell attributes for the whole row (or column)
|
||||
self.SetRowAttr(5, attr)
|
||||
|
||||
|
||||
self.SetColLabelValue(0, "Custom")
|
||||
self.SetColLabelValue(1, "column")
|
||||
self.SetColLabelValue(2, "labels")
|
||||
@@ -55,15 +55,15 @@ class TestGrid(wx.grid.Grid):
|
||||
self.SetCellRenderer(15,0, renderer)
|
||||
self.SetCellValue(15,0, "The text in this cell will be rendered with word-wrapping")
|
||||
self.SetRowSize(15, 40)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class TestFrame(wx.Frame):
|
||||
def __init__(self, *args, **kw):
|
||||
wx.Frame.__init__(self, *args, **kw)
|
||||
self.grid = TestGrid(self)
|
||||
|
||||
|
||||
|
||||
app = wx.App()
|
||||
frm = TestFrame(None, title="Simple Test Grid", size=(700,500))
|
||||
frm.Show()
|
||||
|
||||
Reference in New Issue
Block a user