From 7a66928b33dba4dc0776b3ee55c86c5283c85c09 Mon Sep 17 00:00:00 2001 From: nightcityblade Date: Sat, 29 Aug 2026 11:20:41 +0800 Subject: [PATCH] Use non-deprecated wx GUI event loop --- src/debugpy/_vendored/pydevd/pydev_ipython/inputhookwx.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookwx.py b/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookwx.py index 455114b65..e87934930 100644 --- a/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookwx.py +++ b/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookwx.py @@ -44,7 +44,7 @@ def inputhook_wx1(): # Make a temporary event loop and process system events until # there are no more waiting, then allow idle events (which # will also deal with pending or posted wx events.) - evtloop = wx.EventLoop() # @UndefinedVariable + evtloop = wx.GUIEventLoop() # @UndefinedVariable ea = wx.EventLoopActivator(evtloop) # @UndefinedVariable while evtloop.Pending(): evtloop.Dispatch() @@ -66,7 +66,7 @@ def Notify(self): class EventLoopRunner(object): def Run(self, time): - self.evtloop = wx.EventLoop() # @UndefinedVariable + self.evtloop = wx.GUIEventLoop() # @UndefinedVariable self.timer = EventLoopTimer(self.check_stdin) self.timer.Start(time) self.evtloop.Run() @@ -128,7 +128,7 @@ def inputhook_wx3(): if not callable(signal.getsignal(signal.SIGINT)): signal.signal(signal.SIGINT, signal.default_int_handler) - evtloop = wx.EventLoop() # @UndefinedVariable + evtloop = wx.GUIEventLoop() # @UndefinedVariable ea = wx.EventLoopActivator(evtloop) # @UndefinedVariable t = clock() while not stdin_ready():