From c133c08a8be4e00d3241e2a8734bddc6151819b5 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 22 May 2012 00:18:03 +0000 Subject: [PATCH] Explicitly specify the pyArgsString for wx.TextAttr.SetFont since the generators don't know how to handle the & operator in bitflags yet. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- etg/textctrl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/etg/textctrl.py b/etg/textctrl.py index 4d747763..5f519135 100644 --- a/etg/textctrl.py +++ b/etg/textctrl.py @@ -35,6 +35,7 @@ def run(): assert isinstance(c, etgtools.ClassDef) c.find('operator=').ignore() + c.find('SetFont').pyArgsString = '(font, flags=TEXT_ATTR_FONT & ~TEXT_ATTR_FONT_PIXEL_SIZE)' c = module.find('wxTextCtrl') module.addGlobalStr('wxTextCtrlNameStr', c)