mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
* More changes due to stricter argument passing rules
* Fixed calendar.py, mimetools.py, whrandom.py to cope with time.time() returning a floating point number. (And fix old bug in calendar) * Add recursion level to mainloop.mainloop(), to make it reentrant.
This commit is contained in:
parent
a2b7f40513
commit
fea2af1e9b
18 changed files with 113 additions and 78 deletions
|
@ -27,15 +27,14 @@ class BoxParent(TransParent):
|
|||
def getbounds(self):
|
||||
return self.bounds
|
||||
#
|
||||
def draw(self, args):
|
||||
d, area = args
|
||||
def draw(self, d, area):
|
||||
(left, top), (right, bottom) = self.bounds
|
||||
left = left + 1
|
||||
top = top + 1
|
||||
right = right - 1
|
||||
bottom = bottom - 1
|
||||
d.box((left, top), (right, bottom))
|
||||
TransParent.draw(self, args) # XXX clip to innerbounds?
|
||||
TransParent.draw(self, d, area) # XXX clip to innerbounds?
|
||||
#
|
||||
# XXX should scroll clip to innerbounds???
|
||||
# XXX currently the only user restricts itself to child's bounds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue