diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib-stdwin/textwin.py | 8 | ||||
-rwxr-xr-x | 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 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) |