Only since Python 3.11 (and same problem on 3.12, but fine 3.10 and earlier) my app window is starting hidden behind the VSCode window on Mac. Minor but annoying. All else seems to work fine.
Any ideas how to fix this? I’ve tried Raise(), but no effect. Show() works ok but doesn’t bring window to the front.
Can reproduce problem on any minimal wxPython code.
Hi, this has been raised here previously:
Hi,
First of all, thank you for this fantastic toolkit! I’m using in ms windows from years!
Description of the problem:
The window opens in the background and does not receive focus. After running the program, I am able to type, and my input goes into the terminal window
[image]
Operating system: MacOS 13.6 (22G120)
wxPython version & source: pypi wxPython 4.2.1
Python version & source: Python 3.11.6
The code is:
import wx
class MyForm(wx.Frame):
def __init__(self, *args, **kw):
…
and also as an issue in the wxPython GitHub repo:
opened 08:48PM - 19 Dec 23 UTC
<!-- For bugs or other problems please provide the following details in addition… to
your issue report, if applicable. See also https://wxpython.org/pages/how-to-submit-issue/
For issues about building on Linux, please read this page before reporting it here:
https://wxpython.org/blog/2017-08-17-builds-for-linux-with-pip/
-->
**Operating system**: MacOS 13.6 (22G120)
**wxPython version & source**: pypi wxPython 4.2.1
**Python version & source**: Python 3.11.6
**Description of the problem**:
The window opens in the background and does not receive focus. After running the program, I am able to type, and my input goes into the terminal window
![image](https://github.com/wxWidgets/Phoenix/assets/3630051/9322829a-4cd8-4c6a-aa57-8bc9caf553e6)
thank you for support
<details>
<summary>Code Example (click to expand)</summary>
```python
import wx
class MyForm(wx.Frame):
def __init__(self, *args, **kw):
super(MyForm, self).__init__(*args, **kw)
if __name__ == "__main__":
app = wx.App(False)
frame = MyForm(None, title="Esempio Form in wxPython", size=(400, 300))
frame.Show()
app.MainLoop()
```
</details>
1 Like