mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-03-16 13:40:08 +01:00
Add methods to wx.TextCtrl for output "file-like" compatibility
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user