From: Robin Dunn Date: Wed, 29 Nov 2006 15:57:18 +0000 (+0000) Subject: use a more appropriate setter for the Selection property X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/71975d807bf1421772e88be31d41fbc163ce6b59?hp=b4eecebd423df0c6efe86d7658cd3df818d67ed8 use a more appropriate setter for the Selection property git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/gtk/richtext.py b/wxPython/src/gtk/richtext.py index 4bc2f0b0f7..efe7f99d91 100644 --- a/wxPython/src/gtk/richtext.py +++ b/wxPython/src/gtk/richtext.py @@ -1396,7 +1396,7 @@ class RichTextCtrl(_windows.ScrolledWindow): InternalSelectionRange = property(GetInternalSelectionRange,SetInternalSelectionRange,doc="See `GetInternalSelectionRange` and `SetInternalSelectionRange`") LastPosition = property(GetLastPosition,doc="See `GetLastPosition`") NumberOfLines = property(GetNumberOfLines,doc="See `GetNumberOfLines`") - Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") + Selection = property(GetSelection,SetSelectionRange,doc="See `GetSelection` and `SetSelection`") SelectionRange = property(GetSelectionRange,SetSelectionRange,doc="See `GetSelectionRange` and `SetSelectionRange`") StringSelection = property(GetStringSelection,doc="See `GetStringSelection`") StyleSheet = property(GetStyleSheet,SetStyleSheet,doc="See `GetStyleSheet` and `SetStyleSheet`") diff --git a/wxPython/src/mac/richtext.py b/wxPython/src/mac/richtext.py index 4bc2f0b0f7..efe7f99d91 100644 --- a/wxPython/src/mac/richtext.py +++ b/wxPython/src/mac/richtext.py @@ -1396,7 +1396,7 @@ class RichTextCtrl(_windows.ScrolledWindow): InternalSelectionRange = property(GetInternalSelectionRange,SetInternalSelectionRange,doc="See `GetInternalSelectionRange` and `SetInternalSelectionRange`") LastPosition = property(GetLastPosition,doc="See `GetLastPosition`") NumberOfLines = property(GetNumberOfLines,doc="See `GetNumberOfLines`") - Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") + Selection = property(GetSelection,SetSelectionRange,doc="See `GetSelection` and `SetSelection`") SelectionRange = property(GetSelectionRange,SetSelectionRange,doc="See `GetSelectionRange` and `SetSelectionRange`") StringSelection = property(GetStringSelection,doc="See `GetStringSelection`") StyleSheet = property(GetStyleSheet,SetStyleSheet,doc="See `GetStyleSheet` and `SetStyleSheet`") diff --git a/wxPython/src/msw/richtext.py b/wxPython/src/msw/richtext.py index 4bc2f0b0f7..efe7f99d91 100644 --- a/wxPython/src/msw/richtext.py +++ b/wxPython/src/msw/richtext.py @@ -1396,7 +1396,7 @@ class RichTextCtrl(_windows.ScrolledWindow): InternalSelectionRange = property(GetInternalSelectionRange,SetInternalSelectionRange,doc="See `GetInternalSelectionRange` and `SetInternalSelectionRange`") LastPosition = property(GetLastPosition,doc="See `GetLastPosition`") NumberOfLines = property(GetNumberOfLines,doc="See `GetNumberOfLines`") - Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") + Selection = property(GetSelection,SetSelectionRange,doc="See `GetSelection` and `SetSelection`") SelectionRange = property(GetSelectionRange,SetSelectionRange,doc="See `GetSelectionRange` and `SetSelectionRange`") StringSelection = property(GetStringSelection,doc="See `GetStringSelection`") StyleSheet = property(GetStyleSheet,SetStyleSheet,doc="See `GetStyleSheet` and `SetStyleSheet`") diff --git a/wxPython/src/richtext.i b/wxPython/src/richtext.i index 5387979d3d..87a22da1bd 100644 --- a/wxPython/src/richtext.i +++ b/wxPython/src/richtext.i @@ -1417,7 +1417,7 @@ flag.", ""); %property(InternalSelectionRange, GetInternalSelectionRange, SetInternalSelectionRange, doc="See `GetInternalSelectionRange` and `SetInternalSelectionRange`"); %property(LastPosition, GetLastPosition, doc="See `GetLastPosition`"); %property(NumberOfLines, GetNumberOfLines, doc="See `GetNumberOfLines`"); - %property(Selection, GetSelection, SetSelection, doc="See `GetSelection` and `SetSelection`"); + %property(Selection, GetSelection, SetSelectionRange, doc="See `GetSelection` and `SetSelection`"); %property(SelectionRange, GetSelectionRange, SetSelectionRange, doc="See `GetSelectionRange` and `SetSelectionRange`"); %property(StringSelection, GetStringSelection, doc="See `GetStringSelection`"); %property(StyleSheet, GetStyleSheet, SetStyleSheet, doc="See `GetStyleSheet` and `SetStyleSheet`");