Add methods to wx.TextCtrl for output "file-like" compatibility

This commit is contained in:
Robin Dunn
2017-10-25 17:40:19 -07:00
parent ec00c6bd74
commit dfc4b62e11
2 changed files with 11 additions and 0 deletions

View File

@@ -38,6 +38,9 @@ Changes in this release include the following:
* Add missing ``wx.GetLocale`` function. (#572)
* Add methods to wx.TextCtrl for output "file-like" compatibility. (#578)

View File

@@ -98,6 +98,14 @@ def parseAndTweakModule():
#endif
""")
# Methods for "file-like" compatibility
c.addCppMethod('void', 'write', '(const wxString* text)',
doc="Append text to the textctrl, for file-like compatibility.",
body="self->AppendText(*text);")
c.addCppMethod('void', 'flush', '()',
doc="NOP, for file-like compatibility.",
body="")
c = module.find('wxTextUrlEvent')
tools.fixEventClass(c)