Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 PyQT 制作 Gui,其中我通过按钮控制音量我正在使用 amixer 命令行工具来增加和减少音量,当用户增加或减少音量时,我还可以显示默认通知吗?我正在使用 Ubuntu 12.04
我找到了解决方案
volume = 60 cmd ="notify-send \" \" -i notification-audio-volume-high -h int:value:"+str(volume)+" -h string:synchronous:volume" #print cmd os.system(cmd)