Skip to content

Commit

Permalink
Merge pull request #2478 from swt2c/wx3.2.4
Browse files Browse the repository at this point in the history
Update wxWidgets to v3.2.4
  • Loading branch information
swt2c authored Nov 23, 2023
2 parents 11c4a77 + 7a198b8 commit 172e732
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 28 deletions.
48 changes: 21 additions & 27 deletions etg/textctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion ext/wxWidgets
Submodule wxWidgets updated 320 files

0 comments on commit 172e732

Please sign in to comment.