wxPyDeprecationWarning: Using deprecated class. Use Cursor instead

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

wxPyDeprecationWarning: Using deprecated class. Use Cursor instead

steve
Hi, 

I use Windows 10, Python 3.7 and wxpython 4.0.4 (yes, all of them shiny & new :))

When I do:

self.panel.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))

I get this error:

wxPyDeprecationWarning: Using deprecated class. Use Cursor instead.

What should I do?

Best Regards

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPyDeprecationWarning: Using deprecated class. Use Cursor instead

Scott Talbert
On Wed, 1 May 2019, steve wrote:

> Hi, 
> I use Windows 10, Python 3.7 and wxpython 4.0.4 (yes, all of them shiny &
> new :))
>
> When I do:
>
> self.panel.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))
>
> I get this error:
>
> wxPyDeprecationWarning: Using deprecated class. Use Cursor instead.
>
> What should I do?
What the warning says.  :-)

self.panel.SetCursor(wx.Cursor(wx.CURSOR_ARROW))

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPyDeprecationWarning: Using deprecated class. Use Cursor instead

Tim Roberts
In reply to this post by steve
steve wrote:

I get this error:
wxPyDeprecationWarning: Using deprecated class. Use Cursor instead.

As a side note, that's not an error.  It's a warning, letting you know of potential future problems.  Your program will continue to work normally.

-- 
Tim Roberts, [hidden email]
Providenza & Boekelheide, Inc.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

smime.p7s (5K) Download Attachment