[Python-modules-commits] [twisted] 06/16: wxpython3.0

Free Ekanayaka freee at moszumanska.debian.org
Mon Aug 28 17:40:02 UTC 2017


This is an automated email from the git hooks/post-receive script.

freee pushed a commit to branch patch-queue/master
in repository twisted.

commit bfb6ddfed86296d8a3054a3e276ab8c3a146c00a
Author: Matthias Klose <doko at debian.org>
Date:   Thu Oct 20 04:34:06 2016 +0000

    wxpython3.0
    
    Fix imports from the wx package.
    
    Gbp-Pq: Name 0001-wxpython3.0.patch
---
 src/twisted/internet/wxreactor.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/twisted/internet/wxreactor.py b/src/twisted/internet/wxreactor.py
index a6c968d..1a73626 100644
--- a/src/twisted/internet/wxreactor.py
+++ b/src/twisted/internet/wxreactor.py
@@ -29,11 +29,11 @@ except ImportError:
     from Queue import Empty, Queue
 
 try:
-    from wx import PySimpleApp as wxPySimpleApp, CallAfter as wxCallAfter, \
+    from wx import App as wxApp, CallAfter as wxCallAfter, \
          Timer as wxTimer
 except ImportError:
     # older version of wxPython:
-    from wxPython.wx import wxPySimpleApp, wxCallAfter, wxTimer
+    from wxPython.wx import wxApp, wxCallAfter, wxTimer
 
 from twisted.python import log, runtime
 from twisted.internet import _threadedselect
@@ -129,7 +129,7 @@ class WxReactor(_threadedselect.ThreadedSelectReactor):
         if not hasattr(self, "wxapp"):
             log.msg("registerWxApp() was not called on reactor, "
                     "registering my own wxApp instance.")
-            self.registerWxApp(wxPySimpleApp())
+            self.registerWxApp(wxApp(False))
 
         # start select() thread:
         self.interleave(self._runInMainThread,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/twisted.git



More information about the Python-modules-commits mailing list