From 30903969839d27e95dd456d3e2155e3ead2069b6 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 3 Oct 2014 11:56:12 +0200 Subject: [PATCH 1/1] Fix importing the publisher class Use the new name directly to fix errors like this one: Traceback (most recent call last): File "./PoPiPaint.py", line 22, in import CanvasFrame File ".../CanvasFrame.py", line 22, in import CanvasModel File ".../CanvasModel.py", line 21, in from wx.lib.pubsub import Publisher as pub ImportError: cannot import name Publisher --- CanvasFrame.py | 3 ++- CanvasModel.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CanvasFrame.py b/CanvasFrame.py index 9822c4d..360e3e1 100755 --- a/CanvasFrame.py +++ b/CanvasFrame.py @@ -16,7 +16,8 @@ # along with this program. If not, see . 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 diff --git a/CanvasModel.py b/CanvasModel.py index 49f9f64..d61f00b 100755 --- a/CanvasModel.py +++ b/CanvasModel.py @@ -18,7 +18,8 @@ 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 class Canvas: -- 2.1.4