git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11199
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
PaintBackground and do something meaningful there.
"""
self.log.write("MyCellEditor: SetSize %s\n" % rect)
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):
def Show(self, show, attr):
def OnPrint(self, event):
def OnPrint(self, event):
+ ##self.printer.GetPageSetupData().SetMarginTopLeft((100,100))
self.printer.PrintFile(self.html.GetOpenedPage())
#----------------------------------------------------------------------
self.printer.PrintFile(self.html.GetOpenedPage())
#----------------------------------------------------------------------
#---------------------------------------------------------------------------
class TestPanel(wxPanel):
#---------------------------------------------------------------------------
class TestPanel(wxPanel):
+ def OnSetFocus(self, evt):
+ print "OnSetFocus"
+ evt.Skip()
+ def OnKillFocus(self, evt):
+ print "OnKillFocus"
+ evt.Skip()
+
def __init__(self, parent, log):
wxPanel.__init__(self, parent, -1)
self.log = log
def __init__(self, parent, log):
wxPanel.__init__(self, parent, -1)
self.log = log
t1.SetInsertionPoint(0)
EVT_TEXT(self, 10, self.EvtText)
EVT_CHAR(t1, self.EvtChar)
t1.SetInsertionPoint(0)
EVT_TEXT(self, 10, self.EvtText)
EVT_CHAR(t1, self.EvtChar)
+ EVT_SET_FOCUS(t1, self.OnSetFocus)
+ EVT_KILL_FOCUS(t1, self.OnKillFocus)
l2 = wxStaticText(self, -1, "Passsword")
l2 = wxStaticText(self, -1, "Passsword")