From c56918b7eac27f1cdaeb110c0ea73ee3838aa544 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 30 Sep 2016 13:42:07 -0700 Subject: [PATCH] GetContentWindow needs to be virtual --- etg/dialog.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/etg/dialog.py b/etg/dialog.py index 4a1ee588..9132c3de 100644 --- a/etg/dialog.py +++ b/etg/dialog.py @@ -37,7 +37,8 @@ def run(): c = module.find('wxDialog') assert isinstance(c, etgtools.ClassDef) module.addGlobalStr('wxDialogNameStr', c) - + tools.fixTopLevelWindowClass(c) + c.find('wxDialog.title').default = 'wxEmptyString' c.find('Create.title').default = 'wxEmptyString' @@ -55,8 +56,8 @@ def run(): # context manager methods c.addPyMethod('__enter__', '(self)', 'return self') c.addPyMethod('__exit__', '(self, exc_type, exc_val, exc_tb)', 'self.Destroy()') - - tools.fixTopLevelWindowClass(c) + + c.find('GetContentWindow').isVirtual = True c = module.find('wxWindowModalDialogEvent')