a deprecating warning in wxPython lib is as follows: wxPyDeprecationWarning: wx.lib.pubsub has been deprecated, plese migrate your code to use pypubsub, available on PyPI.
python 3.7.2 and pycharm IDE
a deprecating warning in wxPython lib is as follows: wxPyDeprecationWarning: wx.lib.pubsub has been deprecated, plese migrate your code to use pypubsub, available on PyPI.
python 3.7.2 and pycharm IDE
wx.lib.pubsub
is now deprecated in wxPython. You will need to install PyPubSub now. The PyPubSub package is actually what wx.lib.pubsub
was based on, so the implementation will be almost the same. You can read its documentation here.
To install PyPubSub, use pip:
pip install PyPubSub
Then replace from wx.lib.pubsub import pub
with from pubsub import pub
.
Simply change references to wx.lib.pubsub
to pubsub
So for example:
# Changing the following line
#from wx.lib.pubsub import pub
# to the line below is all that is required
from pubsub import pub