_musicPlayerWidget = MusicPlayerWidget () lay = QVBoxLayout () lay. setContentsMargins ( 0, 0, 0, 0 ) pathFindWidget = QWidget () pathFindWidget. setExtOfFiles ( 'Audio Files (*.mp3)' ) self. _findPathWidget = FindPathWidget () self. Signals - played(bool), positionUpdated(int), durationUpdated(int)Įxample from PyQt5.QtWidgets import QWidget, QVBoxLayout, QApplication, QFormLayout from pyqt_find_path_widget import FindPathWidget # from pyqt_music_player_widget import MusicPlayerWidget class MusicPlayerExample ( QWidget ): def _init_ ( self ): super (). This is using mutagen to get the full length of the media. View_set_event_callback(wid, "widget.Python -m pip install pyqt-music-player-widget Included Packages In this example, the widget launches an application when the user clicks the widget:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |