mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 03:50:06 +01:00
Update wxTextCtrl OSX overrides since they're now documented
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user