wx.Clipboard.Flush now asserts on OSX instead of just returning False

This commit is contained in:
Robin Dunn
2020-05-20 14:49:27 -07:00
parent 5c0df63e28
commit e49398b59b

View File

@@ -64,7 +64,8 @@ class MySTC(stc.StyledTextCtrl):
def OnDestroy(self, evt):
# This is how the clipboard contents can be preserved after
# the app has exited.
wx.TheClipboard.Flush()
if 'wxMac' not in wx.PlatformInfo:
wx.TheClipboard.Flush()
evt.Skip()