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,35 +114,29 @@ def parseAndTweakModule():
# OSX methods for controlling native features # OSX methods for controlling native features
c.addCppMethod('void', 'OSXEnableAutomaticQuoteSubstitution', '(bool enable)', c.find('OSXEnableAutomaticQuoteSubstitution').setCppCode("""\
doc="Mac-only method for turning on/off automatic quote substitutions.", #ifdef __WXMAC__
body="""\ self->OSXEnableAutomaticQuoteSubstitution(enable);
#ifdef __WXMAC__ #else
self->OSXEnableAutomaticQuoteSubstitution(enable); wxPyRaiseNotImplemented();
#else #endif
wxPyRaiseNotImplemented(); """)
#endif
""")
c.addCppMethod('void', 'OSXEnableAutomaticDashSubstitution', '(bool enable)', c.find('OSXEnableAutomaticDashSubstitution').setCppCode("""\
doc="Mac-only method for turning on/off automatic dash substitutions.", #ifdef __WXMAC__
body="""\ self->OSXEnableAutomaticDashSubstitution(enable);
#ifdef __WXMAC__ #else
self->OSXEnableAutomaticDashSubstitution(enable); wxPyRaiseNotImplemented();
#else #endif
wxPyRaiseNotImplemented(); """)
#endif
""")
c.addCppMethod('void', 'OSXDisableAllSmartSubstitutions', '()', c.find('OSXDisableAllSmartSubstitutions').setCppCode("""\
doc="Mac-only method to disable all automatic text substitutions.", #ifdef __WXMAC__
body="""\ self->OSXDisableAllSmartSubstitutions();
#ifdef __WXMAC__ #else
self->OSXDisableAllSmartSubstitutions(); wxPyRaiseNotImplemented();
#else #endif
wxPyRaiseNotImplemented(); """)
#endif
""")
# TODO: add support for wxTextProofOptions (only supported on MSW/GTK3) # TODO: add support for wxTextProofOptions (only supported on MSW/GTK3)
# so will need stubs on other platforms. # so will need stubs on other platforms.