Update wxTextCtrl OSX overrides since they're now documented

This commit is contained in:
Scott Talbert
2023-11-20 22:12:58 -05:00
parent 6e2065bbfd
commit 7a198b8cae

View File

@@ -114,9 +114,7 @@ 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="""\
c.find('OSXEnableAutomaticQuoteSubstitution').setCppCode("""\
#ifdef __WXMAC__
self->OSXEnableAutomaticQuoteSubstitution(enable);
#else
@@ -124,9 +122,7 @@ def parseAndTweakModule():
#endif
""")
c.addCppMethod('void', 'OSXEnableAutomaticDashSubstitution', '(bool enable)',
doc="Mac-only method for turning on/off automatic dash substitutions.",
body="""\
c.find('OSXEnableAutomaticDashSubstitution').setCppCode("""\
#ifdef __WXMAC__
self->OSXEnableAutomaticDashSubstitution(enable);
#else
@@ -134,9 +130,7 @@ def parseAndTweakModule():
#endif
""")
c.addCppMethod('void', 'OSXDisableAllSmartSubstitutions', '()',
doc="Mac-only method to disable all automatic text substitutions.",
body="""\
c.find('OSXDisableAllSmartSubstitutions').setCppCode("""\
#ifdef __WXMAC__
self->OSXDisableAllSmartSubstitutions();
#else