Sir:
I am upgrading a python2 (wx version: 3.0.2.0) script to python3 (wx version: 4.0.7)
It looks like that the script works correct, but wxPyDeprecationWarning: pops out.
Script is:
wx.EVT_SET_FOCUS(#obj, self.onFocus)
#obj isa TextCtrl (or derived) object, self.onFocus is a handler.
Warning is:
Call to deprecated item call. Use :meth:EvtHandler.Bind
instead.
self.Bind(wx.EVT_SET_FOCUS, self.onFocus) and self.Bind(wx.EVT_SET_FOCUS, source=#obj) both are not working correct.
All other EVT_'s are successfully converted to self.Bind(wx.EVT_ , handler, id=**)
So far, I have been unable to find call method for wx.FocusEvent.
Can any expert please direct me to next step?
Thank you in advance.
regards