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.
私はボタンを介してボリュームを制御しているGuiを作成するためにPyQTを使用しています.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)