wx.EventLoop() deprecation warning

Open Beginner friendly
#1,901 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
devtools

Research direction

Start with inputhookwx.py at line 131, where the wx.EventLoop reference produces the warning under wxPython 4.2.2. Check the surrounding input-hook code and existing tests, then verify that the debugger no longer emits this deprecation warning while running a wxPython application.

Written by the indexing model from the issue text.

Description

When running an application which uses the wxPython 4.2.2 library, the VS-Code debugger v2025.6.0 is reporting a number of deprecation warnings that tend to fill the console. An example is...

c:\Users\xxxxx.vscode\extensions\ms-python.debugpy-2025.6.0-win32-x64\bundled\libs\debugpy_vendored\pydevd\pydev_ipython\inputhookwx.py:131: wxPyDeprecationWarning: Using deprecated class EventLoop. Use GUIEventLoop instead.

I have edited all references to wx.EventLoop to use wx.GUIEventLoop in inputhookwx.py and that seems to have resolved the issue.

Dominant language
Python
Stars
2.5k
Forks
202
Avg merge
5d 1h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/debugpy

All issues in microsoft/debugpy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.