mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Sigh... First test before committing. InvalWindowRect and friends are window object methods. Fixed.
This commit is contained in:
parent
43bb2a4f44
commit
7302340436
14 changed files with 55 additions and 48 deletions
|
|
@ -57,11 +57,11 @@ class List(Wbase.SelectableWidget):
|
|||
def adjust(self, oldbounds):
|
||||
self.SetPort()
|
||||
if self._selected:
|
||||
Win.InvalWindowRect(Qd.InsetRect(oldbounds, -3, -3))
|
||||
Win.InvalWindowRect(Qd.InsetRect(self._bounds, -3, -3))
|
||||
self.GetWindow().InvalWindowRect(Qd.InsetRect(oldbounds, -3, -3))
|
||||
self.GetWindow().InvalWindowRect(Qd.InsetRect(self._bounds, -3, -3))
|
||||
else:
|
||||
Win.InvalWindowRect(oldbounds)
|
||||
Win.InvalWindowRect(self._bounds)
|
||||
self.GetWindow().InvalWindowRect(oldbounds)
|
||||
self.GetWindow().InvalWindowRect(self._bounds)
|
||||
if oldbounds[:2] == self._bounds[:2]:
|
||||
# set visRgn to empty, to prevent nasty drawing side effect of LSize()
|
||||
Qd.RectRgn(self._parentwindow.wid.GetWindowPort().visRgn, (0, 0, 0, 0))
|
||||
|
|
@ -359,7 +359,7 @@ class List(Wbase.SelectableWidget):
|
|||
self.SetPort()
|
||||
Qd.EraseRect((l, cb, cr, b))
|
||||
self._list.LUpdate(self._parentwindow.wid.GetWindowPort().visRgn)
|
||||
Win.ValidWindowRect(bounds)
|
||||
self.GetWindow().ValidWindowRect(bounds)
|
||||
else:
|
||||
if self.drawingmode == 0 and self._list is not None:
|
||||
self._list.LSetDrawingMode(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue