diff options
author | Guido van Rossum <guido@python.org> | 1990-12-26 15:40:31 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1990-12-26 15:40:31 (GMT) |
commit | 67c9b8cdad75aa0bbfa62de2ca678c32697d51bc (patch) | |
tree | 98c2ef20ab4b0f1a0f23f4c052a1f2c84a9efe88 /Lib/lib-stdwin/textwin.py | |
parent | 217a5fa3c33ae58c1fe420f94eeb7e806961c3c1 (diff) | |
download | cpython-67c9b8cdad75aa0bbfa62de2ca678c32697d51bc.zip cpython-67c9b8cdad75aa0bbfa62de2ca678c32697d51bc.tar.gz cpython-67c9b8cdad75aa0bbfa62de2ca678c32697d51bc.tar.bz2 |
Adapted to new cutbuffer interface.
Diffstat (limited to 'Lib/lib-stdwin/textwin.py')
-rw-r--r-- | Lib/lib-stdwin/textwin.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/lib-stdwin/textwin.py b/Lib/lib-stdwin/textwin.py index 2631ca4..a003a9a 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) |