Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
Use wx.Cursor() instead of deprecated wx.CursorFromImage()
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartens committed Nov 1, 2021
1 parent c84a03f commit cea2b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dicompyler/baseplugins/2dview.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ def OnMouseMotion(self, evt):
# Custom cursors with > 2 colors only works on Windows currently
if guiutil.IsMSWindows():
image = wx.Image(util.GetResourcePath('contrast_high.png'))
self.SetCursor(wx.CursorFromImage(image))
self.SetCursor(wx.Cursor(image))
# Update the positon and values of the mouse cursor
self.mousepos = evt.GetPosition()
self.OnUpdatePositionValues(evt)
Expand Down

0 comments on commit cea2b7e

Please sign in to comment.