]> granicus.if.org Git - python/commitdiff
Fix bug #670845: cut & clear in the output window now work, in that
authorJust van Rossum <just@letterror.com>
Mon, 20 Jan 2003 09:02:23 +0000 (09:02 +0000)
committerJust van Rossum <just@letterror.com>
Mon, 20 Jan 2003 09:02:23 +0000 (09:02 +0000)
  - clear clears the entire buffer
  - cut doesn't cut, but copies.

Mac/Tools/IDE/PyConsole.py

index 9a4a44be09512e26ed00b19d147509133a4e9a87..3fae413987cb1aa73901aefa83079f1aac58bdea 100644 (file)
@@ -249,6 +249,12 @@ class OutputTextWidget(W.EditText):
                f.close()
                fss.SetCreatorType(W._signature, 'TEXT')
        
+       def domenu_cut(self, *args):
+               self.domenu_copy(*args)
+       
+       def domenu_clear(self, *args):
+               self.set('')
+
 
 class PyOutput: