开发者

Volume level indicator in wxPython

开发者 https://www.devze.com 2023-03-12 00:47 出处:网络
I\'m writing a开发者_如何学编程 simple sound player, and I\'d like have a volume level indicator that would show the current signal level of played sound. I\'m able to feed the widget with the number

I'm writing a开发者_如何学编程 simple sound player, and I'd like have a volume level indicator that would show the current signal level of played sound. I'm able to feed the widget with the number from some range or percentage or anything.

Actually as I have the information from the decoding process, I just need the widget to visualize the level. Is there such a widget in wxPython?


You could use the PeakMeter for that. There's an example in the wxPython demo. Or you can find it in wx.lib.agw.peakmeter. Here's a page of documentation too: http://xoomer.virgilio.it/infinity77/AGW_Docs/peakmeter_module.html#peakmeter

EDIT: I think I may have mis-read this. You can use a slider for a volume control.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号