diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-23 14:56:31 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-23 14:56:31 (GMT) |
commit | 43bb2a4f44bb936cf4d950ee23ccd248276f4b07 (patch) | |
tree | 57e65b705cebb2dc3c67103d3d8521eadaa231bf /Mac/Unsupported/twit/mac_widgets.py | |
parent | d829e9e8e319dfb7f6ac04c4b4b4c25f544064c0 (diff) | |
download | cpython-43bb2a4f44bb936cf4d950ee23ccd248276f4b07.zip cpython-43bb2a4f44bb936cf4d950ee23ccd248276f4b07.tar.gz cpython-43bb2a4f44bb936cf4d950ee23ccd248276f4b07.tar.bz2 |
Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.
Diffstat (limited to 'Mac/Unsupported/twit/mac_widgets.py')
-rw-r--r-- | Mac/Unsupported/twit/mac_widgets.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Unsupported/twit/mac_widgets.py b/Mac/Unsupported/twit/mac_widgets.py index 569214f..d52748b 100644 --- a/Mac/Unsupported/twit/mac_widgets.py +++ b/Mac/Unsupported/twit/mac_widgets.py @@ -80,7 +80,7 @@ class MT_TextWidget: except ValueError: break self.line_index.append(len(data)) - Win.InvalRect(self.rect) + self.wid.InvalWindowRect(self.rect) self.ted.TESetSelect(0,0) self.ted.TECalText() self.ted.TESelView() @@ -192,7 +192,7 @@ class MT_IconTextWidget(MT_TextWidget): def setbreaks(self, list): self.breakpointlist = list[:] Qd.SetPort(self.wid) - Win.InvalRect(self.iconrect) + self.wid.InvalWindowRect(self.iconrect) def setcurline(self, line, pic=PIC_CURRENT): self.curline = line @@ -214,7 +214,7 @@ class MT_IconTextWidget(MT_TextWidget): def setscrollbars(self): MT_TextWidget.setscrollbars(self) - Win.InvalRect(self.iconrect) + self.wid.InvalWindowRect(self.iconrect) def update(self, rgn): MT_TextWidget.update(self, rgn) @@ -268,7 +268,7 @@ class MT_IndexList: for y in range(len(column)): self.list.LSetCell(column[y], (x, y)) self.list.LSetDrawingMode(1) - Win.InvalRect(self.rect) + self.wid.InvalWindowRect(self.rect) def deselectall(self): while 1: |