In list of authors and list of books.
[skip ci]
Next release
------------
-(wx) List of authors, list of books -
-do not select when clicking on column/row titles.
-
-
(wx) List of authors - sort by clicking on column titles.
grid.Bind(wx.grid.EVT_GRID_CELL_LEFT_DCLICK, self.OnDClick)
grid.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown)
+ grid.Bind(wx.grid.EVT_GRID_LABEL_LEFT_CLICK, self.OnLabelClick)
+ grid.Bind(wx.grid.EVT_GRID_LABEL_RIGHT_CLICK, self.OnLabelClick)
self.InitGrid()
grid.SetFocus()
def OnSetFocus(self, event):
self.grid.SetFocus()
+ def OnLabelClick(self, event):
+ event.Veto()
+
class GridWindow(AWindow):