From 4088506f3795c15cce4c64126e8f4a314cdfd631 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 23 Dec 2014 00:28:01 +0000 Subject: [PATCH] Fix event loop usage, but comment for now because it is hanging the tests git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@78300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wx/lib/agw/pyprogress.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/wx/lib/agw/pyprogress.py b/wx/lib/agw/pyprogress.py index 10862da1..69d681e4 100644 --- a/wx/lib/agw/pyprogress.py +++ b/wx/lib/agw/pyprogress.py @@ -532,9 +532,12 @@ class PyProgress(wx.Dialog): if self._elapsed: self.SetTimeLabel(0, self._elapsed) - if not wx.GUIEventLoop().GetActive(): - self.evtloop = wx.GUIEventLoop() - wx.GUIEventLoop.SetActive(self.evtloop) + self.evtloop = None + + # This is causing the unittests to hang, investigate it later. + #if not wx.EventLoopBase.GetActive(): + # self.evtloop = wx.GetApp().GetTraits().CreateEventLoop() + # wx.EventLoopBase.SetActive(self.evtloop) self.Update() @@ -781,7 +784,8 @@ class PyProgress(wx.Dialog): :param `event`: a :class:`WindowDestroyEvent` event to be processed. """ - + if self.evtloop: + wx.EventLoopBase.SetActive(None) self.ReenableOtherWindows() event.Skip()