Don't set the hourglass cursor every time the diagram is redrawn. It can get real annoying.

This commit is contained in:
Robin Dunn
2016-08-04 15:14:43 -07:00
parent 33e3e8d32c
commit 0e79905aa0

View File

@@ -38,12 +38,8 @@ class Diagram(object):
def Redraw(self, dc):
"""Redraw the shapes in the diagram on the specified device context."""
if self._shapeList:
if self.GetCanvas():
self.GetCanvas().SetCursor(wx.HOURGLASS_CURSOR)
for object in self._shapeList:
object.Draw(dc)
if self.GetCanvas():
self.GetCanvas().SetCursor(wx.STANDARD_CURSOR)
def Clear(self, dc):
"""Clear the specified device context."""