Created
April 30, 2018 18:25
-
-
Save mandeep/03ab075d5ed300710048910941bf7f80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5.QtMultimedia import QMediaPlayer | |
from PyQt5.QtWidgets import QApplication, QMainWindow | |
class Application(QMainWindow): | |
def __init__(self, parent=None): | |
super(Application, self).__init__(parent) | |
self.player = QMediaPlayer() | |
def main(): | |
application = QApplication(sys.argv) | |
window = Application() | |
window.show() | |
sys.exit(application.exec_()) | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment