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
This commit is contained in:
Robin Dunn
2014-12-23 00:28:01 +00:00
parent d5fe36663f
commit 4088506f37

View File

@@ -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()