mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
* Got entirely rid of path.py.
* Many modules: fixes for new, stricter, argument passing rules (most changes were automatic ones -- not all of this is tested!). * gwin.py: now uses mainloop.py for its main loop and window admin. * mainloop.py: always call dispatch() with event as a tuple! * Fix bug in pdb's 'clear' command -- don't set the bpt but clear it!
This commit is contained in:
parent
a8993cfe16
commit
89a78697b8
41 changed files with 208 additions and 228 deletions
|
|
@ -8,7 +8,7 @@ from Buttons import LabelAppearance, NoReactivity
|
|||
|
||||
class StripChart(LabelAppearance, NoReactivity):
|
||||
#
|
||||
def define(self, (parent, scale)):
|
||||
def define(self, parent, scale):
|
||||
self.parent = parent
|
||||
parent.addchild(self)
|
||||
self.init_appearance()
|
||||
|
|
@ -49,8 +49,8 @@ class StripChart(LabelAppearance, NoReactivity):
|
|||
area = (left+i-1, top), (left+i, bottom)
|
||||
self.draw(self.parent.begindrawing(), area)
|
||||
#
|
||||
def draw(self, (d, area)):
|
||||
area = rect.intersect(area, self.bounds)
|
||||
def draw(self, d, area):
|
||||
area = rect.intersect([area, self.bounds])
|
||||
if area == rect.empty:
|
||||
return
|
||||
d.cliprect(area)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue