Attempting to draw on the screenDC using DrawRectangle fails silently on macOS, but works on windows 10. I found a post (from 2014) that claimed this was unsupported, but the current documentation doesn’t suggest any platform specific behavior.
import wx app = wx.App(False) s = wx.ScreenDC() s.DrawRectangle(60,60,500, 500) app.MainLoop()
Is this still unsupported, or is there some platform specific modification that needs to be made? On macOS I am running this with pythonw provided by anconda’s python.app package.
edit: I tried MATE and Gnome in a VM and the rectangle doesn’t render there as well.