From 7f3e07a83a9c9e930a222a13cfb90470ac8e352e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 26 Dec 2006 20:32:51 +0000 Subject: [PATCH] Fix for bug #1621459, Made the Selection property read-only since it needs two parameters. You can instead use SelectionStart and SelectionEnd properties for setting the selection if needed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/contrib/stc/stc.i | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wxPython/contrib/stc/stc.i b/wxPython/contrib/stc/stc.i index ab1e072404..192eaed72c 100644 --- a/wxPython/contrib/stc/stc.i +++ b/wxPython/contrib/stc/stc.i @@ -111,7 +111,10 @@ MustHaveApp(wxStyledTextCtrl); %property(SelectedText, GetSelectedText, doc="See `GetSelectedText`"); %property(SelectedTextRaw, GetSelectedTextRaw, doc="See `GetSelectedTextRaw`"); %property(SelectedTextUTF8, GetSelectedTextUTF8, doc="See `GetSelectedTextUTF8`"); - %property(Selection, GetSelection, SetSelection, doc="See `GetSelection` and `SetSelection`"); + + //%property(Selection, GetSelection, SetSelection, doc="See `GetSelection` and `SetSelection`"); + %property(Selection, GetSelection, doc="See `GetSelection`"); + %property(SelectionEnd, GetSelectionEnd, SetSelectionEnd, doc="See `GetSelectionEnd` and `SetSelectionEnd`"); %property(SelectionMode, GetSelectionMode, SetSelectionMode, doc="See `GetSelectionMode` and `SetSelectionMode`"); %property(SelectionStart, GetSelectionStart, SetSelectionStart, doc="See `GetSelectionStart` and `SetSelectionStart`");