<!-- 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 Tahoe Beta 4 **wxPython version & source**: 4.2.2/4.2.3 <!-- pypi, self-built, etc. --> **Python version & source**: 3.11.9 <!-- stock, anaconda, EDM, distro, self-built, etc. --> **Description of the problem**:StaticBox displayed as a black box, unable to display properly <!-- if possible please include a small runnable application in the details section below that demonstrates the problem --> <details> <summary>Code Example (click to expand)</summary> See https://github.com/laobamac/OCLP-Mod/blob/tahoe-test/oclp_mod/wx_gui/gui_macos_installer_download.py As shown in the figure <img width="1010" height="936" alt="Image" src="https://github.com/user-attachments/assets/cc2177b4-38cf-4128-8fcc-a0832a493835" /> </details>