]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Set cursor to arrow also when no window is active. Looks better when run from IDE.
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 30 Jul 2001 20:24:49 +0000 (20:24 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 30 Jul 2001 20:24:49 +0000 (20:24 +0000)
Got rid of regsub.

Mac/Demo/waste/htmled.py

index c73fa569d61a361c9127aa830d91c718bf0a6cd1..4d29e1ea9b839a2d9288700ba16f337416046743 100644 (file)
@@ -15,7 +15,6 @@ import Scrap
 import os
 import macfs
 import MACFS
-import regsub
 import string
 import htmllib
 
@@ -445,7 +444,7 @@ class WasteWindow(ScrolledWindow):
                self.ted.WEInsert(data, None, None)
                
        def send_literal_data(self, data):
-               data = regsub.gsub('\n', '\r', data)
+               data = string.replace(data, '\n', '\r')
                data = string.expandtabs(data)
                self.ted.WEInsert(data, None, None)
                
@@ -775,6 +774,8 @@ class Wed(Application):
        def idle(self, event):
                if self.active:
                        self.active.do_idle(event)
+               else:
+                       Qd.SetCursor(Qd.qd.arrow)
                        
        def newRuler(self, obj):
                """Insert a new ruler. Make it as wide as the window minus 2 pxls"""