mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user