Phoenix icon indicating copy to clipboard operation
Phoenix copied to clipboard

wx.EVT_FULLSCREEN and wx.FullScreenEvent not available on macOS, despite documentation claiming it is

Open davidfstr opened this issue 1 year ago • 6 comments

Operating system: macOS 10.14.6 (Mojave) wxPython version & source: 4.1.1 osx-cocoa (phoenix) wxWidgets 3.1.5, from PyPI Python version & source: CPython 3.8.10

Description of the problem:

The documentation for wx.EVT_FULLSCREEN and wx.FullScreenEvent say they are "New in version 4.1/wxWidgets-3.1.5." and thus presumably available in those versions of wxPython/wxWidgets.

However I cannot access either wx.EVT_FULLSCREEN or wx.FullScreenEvent on wxPython 4.1.x / wxWidgets 3.1.5, which makes it impossible for me to listen to fullscreen events on wx.TopLevelWindows on macOS. See the code example below for details.

Is there something special that needs to be done to access these items in the wx module?

Code Example (click to expand)
$ python3
Python 3.8.10 (v3.8.10:3d8993a744, May  3 2021, 08:55:58) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform; platform.system()
'Darwin'
>>> import wx; wx.version()
'4.1.1 osx-cocoa (phoenix) wxWidgets 3.1.5'
>>> wx.EVT_FULLSCREEN
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'wx' has no attribute 'EVT_FULLSCREEN'
>>> wx.FullScreenEvent
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'wx' has no attribute 'FullScreenEvent'
>>> 

davidfstr avatar May 14 '23 02:05 davidfstr