summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-12-26 15:40:31 (GMT)
committerGuido van Rossum <guido@python.org>1990-12-26 15:40:31 (GMT)
commit67c9b8cdad75aa0bbfa62de2ca678c32697d51bc (patch)
tree98c2ef20ab4b0f1a0f23f4c052a1f2c84a9efe88 /Lib
parent217a5fa3c33ae58c1fe420f94eeb7e806961c3c1 (diff)
downloadcpython-67c9b8cdad75aa0bbfa62de2ca678c32697d51bc.zip
cpython-67c9b8cdad75aa0bbfa62de2ca678c32697d51bc.tar.gz
cpython-67c9b8cdad75aa0bbfa62de2ca678c32697d51bc.tar.bz2
Adapted to new cutbuffer interface.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib-stdwin/textwin.py8
-rwxr-xr-xLib/stdwin/textwin.py8
2 files changed, 8 insertions, 8 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)
diff --git a/Lib/stdwin/textwin.py b/Lib/stdwin/textwin.py
index 2631ca4..a003a9a 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)