diff --git a/etg/textctrl.py b/etg/textctrl.py index af631a536..690d68c4f 100644 --- a/etg/textctrl.py +++ b/etg/textctrl.py @@ -114,35 +114,29 @@ def parseAndTweakModule(): # OSX methods for controlling native features - c.addCppMethod('void', 'OSXEnableAutomaticQuoteSubstitution', '(bool enable)', - doc="Mac-only method for turning on/off automatic quote substitutions.", - body="""\ - #ifdef __WXMAC__ - self->OSXEnableAutomaticQuoteSubstitution(enable); - #else - wxPyRaiseNotImplemented(); - #endif - """) + c.find('OSXEnableAutomaticQuoteSubstitution').setCppCode("""\ + #ifdef __WXMAC__ + self->OSXEnableAutomaticQuoteSubstitution(enable); + #else + wxPyRaiseNotImplemented(); + #endif + """) - c.addCppMethod('void', 'OSXEnableAutomaticDashSubstitution', '(bool enable)', - doc="Mac-only method for turning on/off automatic dash substitutions.", - body="""\ - #ifdef __WXMAC__ - self->OSXEnableAutomaticDashSubstitution(enable); - #else - wxPyRaiseNotImplemented(); - #endif - """) + c.find('OSXEnableAutomaticDashSubstitution').setCppCode("""\ + #ifdef __WXMAC__ + self->OSXEnableAutomaticDashSubstitution(enable); + #else + wxPyRaiseNotImplemented(); + #endif + """) - c.addCppMethod('void', 'OSXDisableAllSmartSubstitutions', '()', - doc="Mac-only method to disable all automatic text substitutions.", - body="""\ - #ifdef __WXMAC__ - self->OSXDisableAllSmartSubstitutions(); - #else - wxPyRaiseNotImplemented(); - #endif - """) + c.find('OSXDisableAllSmartSubstitutions').setCppCode("""\ + #ifdef __WXMAC__ + self->OSXDisableAllSmartSubstitutions(); + #else + wxPyRaiseNotImplemented(); + #endif + """) # TODO: add support for wxTextProofOptions (only supported on MSW/GTK3) # so will need stubs on other platforms. diff --git a/ext/wxWidgets b/ext/wxWidgets index be772c284..085a136dc 160000 --- a/ext/wxWidgets +++ b/ext/wxWidgets @@ -1 +1 @@ -Subproject commit be772c284f20969e7c2a5b62d3d43db56cdc5a6b +Subproject commit 085a136dcb11aca5b1102193f006f8056d5f0876