Use the new name directly to fix errors like this one:
Traceback (most recent call last):
File "./PoPiPaint.py", line 22, in <module>
import CanvasFrame
File ".../CanvasFrame.py", line 22, in <module>
import CanvasModel
File ".../CanvasModel.py", line 21, in <module>
from wx.lib.pubsub import Publisher as pub
ImportError: cannot import name Publisher
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import wx
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import wx
-from wx.lib.pubsub import Publisher as pub
+from wx.lib.pubsub import setuparg1
+from wx.lib.pubsub import pub
from wx.lib.wordwrap import wordwrap
import CanvasModel
from wx.lib.wordwrap import wordwrap
import CanvasModel
import sys
from array import array
import wx
import sys
from array import array
import wx
-from wx.lib.pubsub import Publisher as pub
+from wx.lib.pubsub import setuparg1
+from wx.lib.pubsub import pub