diff options
Diffstat (limited to 'Lib/stdwin/StripChart.py')
-rwxr-xr-x | Lib/stdwin/StripChart.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/stdwin/StripChart.py b/Lib/stdwin/StripChart.py index 5bce412..afec007 100755 --- a/Lib/stdwin/StripChart.py +++ b/Lib/stdwin/StripChart.py @@ -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) |