I have the following code to make a window behave like a modal window. The problem is that the code works only in Windows. In macOs (10.14.4) and Linux (Fedora30) it does not really make the window modal. It just show the window always on top but the GUI elements of other windows are functional.
Is there a way to make the window modal in macOS and Linux with wxPython 4.0.4?
Code:
def ShowModal(self):
"""
wx.Dialog behavior
"""
self._disabler = wx.WindowDisabler(self)
self.Show()
self.eventLoop = wx.GUIEventLoop()
self.eventLoop.Run()