简体   繁体   English

如何使用PyQT在GUI中播放MP3

[英]How to play MP3 in GUI using PyQT

I wanted to create a simple GUI app which selects one of the MP3 files and plays it. 我想创建一个简单的GUI应用程序,该应用程序选择一个MP3文件并播放。 Can't seem to find the best library for doing that with PyQT. 似乎找不到使用PyQT做到这一点的最佳库。 Therefore need some recommendation on it. 因此需要一些建议。 Don't mind switch to JavaFX or something if it has more options. 不要介意切换到JavaFX或其他选项。

I know GUI is probably outdated nowadays when everything is web. 我知道,当一切都在网络上时,GUI可能已过时。 Would Javascript be a better choice? Javascript会是更好的选择吗?

try vlc module for python to play all types of audio and videos in case needed later. 尝试为Python使用vlc模块播放所有类型的音频和视频,以备日后使用。 You should make use of the Qt example seen in examples folder when you unzip the downloaded tar file 解压缩下载的tar文件时,应使用在examples文件夹中看到的Qt示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM