From da2fbf09300bccf52390a63ef183b8146e2f33ea Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Thu, 30 Dec 2021 11:47:09 -0500 Subject: [PATCH] Require wx.App for wx.NotificationMessage --- etg/notifmsg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/etg/notifmsg.py b/etg/notifmsg.py index cc84e4b5..f85b8675 100644 --- a/etg/notifmsg.py +++ b/etg/notifmsg.py @@ -33,6 +33,7 @@ def run(): c = module.find('wxNotificationMessage') assert isinstance(c, etgtools.ClassDef) + c.mustHaveApp() # take care of some methods only available on MSW c.find('UseTaskBarIcon').setCppCode("""\