From 67c9b8cdad75aa0bbfa62de2ca678c32697d51bc Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 26 Dec 1990 15:40:31 +0000 Subject: [PATCH] Adapted to new cutbuffer interface. --- Lib/lib-stdwin/textwin.py | 8 ++++---- Lib/stdwin/textwin.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Lib/lib-stdwin/textwin.py b/Lib/lib-stdwin/textwin.py index 2631ca4ee54..a003a9a0d97 100644 --- a/Lib/lib-stdwin/textwin.py +++ b/Lib/lib-stdwin/textwin.py @@ -19,18 +19,18 @@ def fixsize(w): def cut(w, m, id): s = w.text.getfocustext() if s: - stdwin.setcutbuffer(s) + stdwin.setcutbuffer(0, s) w.text.replace('') fixsize(w) def copy(w, m, id): s = w.text.getfocustext() if s: - stdwin.setcutbuffer(s) + stdwin.setcutbuffer(0, s) fixeditmenu(w) def paste(w, m, id): - w.text.replace(stdwin.getcutbuffer()) + w.text.replace(stdwin.getcutbuffer(0)) fixsize(w) def addeditmenu(w): @@ -50,7 +50,7 @@ def fixeditmenu(w): m.enable(1, can_copy) if not w.readonly: m.enable(0, can_copy) - m.enable(2, (stdwin.getcutbuffer() <> '')) + m.enable(2, (stdwin.getcutbuffer(0) <> '')) def draw(w, area): # Draw method w.text.draw(area) diff --git a/Lib/stdwin/textwin.py b/Lib/stdwin/textwin.py index 2631ca4ee54..a003a9a0d97 100755 --- a/Lib/stdwin/textwin.py +++ b/Lib/stdwin/textwin.py @@ -19,18 +19,18 @@ def fixsize(w): def cut(w, m, id): s = w.text.getfocustext() if s: - stdwin.setcutbuffer(s) + stdwin.setcutbuffer(0, s) w.text.replace('') fixsize(w) def copy(w, m, id): s = w.text.getfocustext() if s: - stdwin.setcutbuffer(s) + stdwin.setcutbuffer(0, s) fixeditmenu(w) def paste(w, m, id): - w.text.replace(stdwin.getcutbuffer()) + w.text.replace(stdwin.getcutbuffer(0)) fixsize(w) def addeditmenu(w): @@ -50,7 +50,7 @@ def fixeditmenu(w): m.enable(1, can_copy) if not w.readonly: m.enable(0, can_copy) - m.enable(2, (stdwin.getcutbuffer() <> '')) + m.enable(2, (stdwin.getcutbuffer(0) <> '')) def draw(w, area): # Draw method w.text.draw(area)