diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-03 13:31:36 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-03 13:31:36 (GMT) |
commit | cbed91b4db6817b7bbbb12ede40bfb5d26a9bf14 (patch) | |
tree | 1995f01bd8828ae9647ad407e40dd8584ca843da /Mac/Demo/waste/htmled.py | |
parent | cb60dae6a1a7841138421866ea15870f6297cf8b (diff) | |
download | cpython-cbed91b4db6817b7bbbb12ede40bfb5d26a9bf14.zip cpython-cbed91b4db6817b7bbbb12ede40bfb5d26a9bf14.tar.gz cpython-cbed91b4db6817b7bbbb12ede40bfb5d26a9bf14.tar.bz2 |
Merging appropriate 2.1.1 fixes back into the main trunk.
Diffstat (limited to 'Mac/Demo/waste/htmled.py')
-rw-r--r-- | Mac/Demo/waste/htmled.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Mac/Demo/waste/htmled.py b/Mac/Demo/waste/htmled.py index 7643947..4d29e1e 100644 --- a/Mac/Demo/waste/htmled.py +++ b/Mac/Demo/waste/htmled.py @@ -15,7 +15,6 @@ import Scrap import os import macfs import MACFS -import regsub import string import htmllib @@ -47,7 +46,7 @@ class WasteWindow(ScrolledWindow): self.path = path self.name = name r = windowbounds(400, 400) - w = Win.NewWindow(r, name, 1, 0, -1, 1, 0x55555555) + w = Win.NewWindow(r, name, 1, 0, -1, 1, 0) self.wid = w vr = LEFTMARGIN, 0, r[2]-r[0]-15, r[3]-r[1]-15 dr = (0, 0, vr[2], 0) @@ -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""" |