#
# 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
-# o EVT_STC_DRAG_OVER event GetdragResult() is not an int
# o wx.TheClipboard.Flush() generates a warning on program exit.
#
demoText = """\
-
This editor is provided by a class named wx.StyledTextCtrl. As
the name suggests, you can define styles that can be applied to
sections of text. This will typically be used for things like
def OnDragOver(self, evt):
- #Todo: evt.GetdragResult() response is not an int
-
self.log.write(
"OnDragOver: x,y=(%d, %d) pos: %d DragResult: %d\n"
% (evt.GetX(), evt.GetY(), evt.GetPosition(), evt.GetDragResult())
#ed.StyleClearAll()
#ed.SetScrollWidth(800)
#ed.SetWrapMode(True)
+ #ed.SetUseAntiAliasing(False)
ed.SetText(demoText)
print "FindText(0, max, 'indicators'): ",
print ed.FindText(0, ed.GetTextLength(), "indicators")
- ed.GotoPos(0)
-
-
+ wx.CallAfter(ed.GotoPos, 0)
return p