From cea2b7e0f68a0a547113721d1a56e81603191d90 Mon Sep 17 00:00:00 2001 From: Jonathan Martens Date: Mon, 1 Nov 2021 15:30:07 +0100 Subject: [PATCH] Use wx.Cursor() instead of deprecated wx.CursorFromImage() --- dicompyler/baseplugins/2dview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dicompyler/baseplugins/2dview.py b/dicompyler/baseplugins/2dview.py index accec68..dfaf78a 100644 --- a/dicompyler/baseplugins/2dview.py +++ b/dicompyler/baseplugins/2dview.py @@ -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)