summaryrefslogtreecommitdiffstats
path: root/Lib/stdwin/VUMeter.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-11-05 19:44:31 (GMT)
committerGuido van Rossum <guido@python.org>1990-11-05 19:44:31 (GMT)
commit0c89ec778d684a13a656b6b3462ae7dfd2837148 (patch)
treed56db45e4a0e9d476256a9582a051cf3fa520ed9 /Lib/stdwin/VUMeter.py
parentc8564cde0405fd10067f40068ce6735b1bfcc7d5 (diff)
downloadcpython-0c89ec778d684a13a656b6b3462ae7dfd2837148.zip
cpython-0c89ec778d684a13a656b6b3462ae7dfd2837148.tar.gz
cpython-0c89ec778d684a13a656b6b3462ae7dfd2837148.tar.bz2
*** empty log message ***
Diffstat (limited to 'Lib/stdwin/VUMeter.py')
-rwxr-xr-xLib/stdwin/VUMeter.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/stdwin/VUMeter.py b/Lib/stdwin/VUMeter.py
index 65c018b..59fc36f 100755
--- a/Lib/stdwin/VUMeter.py
+++ b/Lib/stdwin/VUMeter.py
@@ -10,8 +10,9 @@ class VUMeter() = StripChart():
#
# Override define() and timer() methods
#
- def define(self, (win, bounds)):
- self = StripChart.define(self, (win, bounds, 128))
+ def define(self, parent):
+ self = StripChart.define(self, (parent, 128))
+ self.parent.need_timer(self)
self.sampling = 0
self.rate = 3
self.enable(0)
@@ -31,7 +32,7 @@ class VUMeter() = StripChart():
audio.start_recording(size)
self.sampling = 1
if self.sampling:
- self.win.settimer(1)
+ self.parent.settimer(1)
#
# New methods: start() and stop()
#