From ad72f14fdff7a620f3228d6518acadb7e6f93aed Mon Sep 17 00:00:00 2001 From: "Patrick K. O'Brien" Date: Sun, 4 May 2003 18:05:37 +0000 Subject: [PATCH] Updates. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wxPython/py/CHANGES.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/wxPython/wxPython/py/CHANGES.txt b/wxPython/wxPython/py/CHANGES.txt index d8e7676f59..572f2a9529 100644 --- a/wxPython/wxPython/py/CHANGES.txt +++ b/wxPython/wxPython/py/CHANGES.txt @@ -20,6 +20,29 @@ should have been:: if __name__ == '__main__': main() +Added pretty-print Display tab to Crust, based on suggestion from +Jason Whitlark. + +Improved ``Can*`` checks in ``EditWindow``, since STC is too lenient, +particularly when it is set to read-only but returns True for +CanPaste() (seems like an STC bug to me):: + + def CanCopy(self): + """Return True if text is selected and can be copied.""" + return self.GetSelectionStart() != self.GetSelectionEnd() + + def CanCut(self): + """Return True if text is selected and can be cut.""" + return self.CanCopy() and self.CanEdit() + + def CanEdit(self): + """Return True if editing should succeed.""" + return not self.GetReadOnly() + + def CanPaste(self): + """Return True if pasting should succeed.""" + return stc.StyledTextCtrl.CanPaste(self) and self.CanEdit() + 0.9.1 (3/21/2003 to 5/2/2003) -----------------------------