git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41932
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
dc = evt.GetDC()
if not dc:
dc = evt.GetDC()
if not dc:
rect = self.GetUpdateRegion().GetBox()
dc.SetClippingRect(rect)
self.TileBackground(dc)
rect = self.GetUpdateRegion().GetBox()
dc.SetClippingRect(rect)
self.TileBackground(dc)
self.dragImage.EndDrag()
self.dragImage = None
self.dragImage.EndDrag()
self.dragImage = None
- dc = wx.ClientDC(self)
-
- self.hiliteShape.Draw(dc)
+ self.RefreshRect(self.hiliteShape.GetRect())
self.hiliteShape = None
# reposition and draw the shape
self.hiliteShape = None
# reposition and draw the shape
)
self.dragShape.shown = True
)
self.dragShape.shown = True
- self.dragShape.Draw(dc)
+ self.RefreshRect(self.dragShape.GetRect())
# The mouse is moving
def OnMotion(self, evt):
# Ignore mouse movement if we're not dragging.
# The mouse is moving
def OnMotion(self, evt):
# Ignore mouse movement if we're not dragging.