summaryrefslogtreecommitdiffstats
path: root/Lib/stdwin/StripChart.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-12-14 12:57:56 (GMT)
committerGuido van Rossum <guido@python.org>1992-12-14 12:57:56 (GMT)
commit89a78697b86782a08be54269b9a7f55d4137d184 (patch)
treec93404611fb1495f466ccd5695b8e80cfab870a1 /Lib/stdwin/StripChart.py
parenta8993cfe16a04c612da72f72181ac63c6f858224 (diff)
downloadcpython-89a78697b86782a08be54269b9a7f55d4137d184.zip
cpython-89a78697b86782a08be54269b9a7f55d4137d184.tar.gz
cpython-89a78697b86782a08be54269b9a7f55d4137d184.tar.bz2
* 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!
Diffstat (limited to 'Lib/stdwin/StripChart.py')
-rwxr-xr-xLib/stdwin/StripChart.py6
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)