mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
*** empty log message ***
This commit is contained in:
parent
c8564cde04
commit
0c89ec778d
10 changed files with 426 additions and 420 deletions
|
@ -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()
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue