-#!/usr/bin/env python
from wxPython.wx import *
from wxPython.grid import *
PaintBackground and do something meaningful there.
"""
self.log.write("MyCellEditor: SetSize %s\n" % rect)
- self._tc.SetDimensions(rect.x, rect.y, rect.width+2, rect.height+2)
+ self._tc.SetDimensions(rect.x, rect.y, rect.width+2, rect.height+2,
+ wxSIZE_ALLOW_MINUS_ONE)
def Show(self, show, attr):
## Oops, there's a bug here, we'll have to do it ourself..
##return self.base_IsAcceptedKey(evt)
- return not evt.HasModifiers() and evt.GetKeyCode() != WXK_SHIFT
+ return (not (evt.ControlDown() or evt.AltDown()) and
+ evt.GetKeyCode() != WXK_SHIFT)
def StartingKey(self, evt):
self.SetColSize(1, 150)
self.SetColSize(2, 150)
+
#---------------------------------------------------------------------------
class TestFrame(wxFrame):