Created
January 19, 2015 19:22
-
-
Save empirefx/431e93db76dc4103d4aa to your computer and use it in GitHub Desktop.
Grooveshark as native app (req: python, PyQt4)
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from PyQt4 import QtGui, QtCore, QtWebKit | |
import subprocess, os | |
from sys import exit, argv | |
if __name__ == '__main__': | |
app = QtGui.QApplication(argv) | |
view = QtWebKit.QWebView() | |
settings = QtWebKit.QWebSettings.globalSettings() | |
#settings.setAttribute(QtWebKit.QWebSettings.DeveloperExtrasEnabled, True) #DEBUG | |
settings.setAttribute(QtWebKit.QWebSettings.PluginsEnabled, True) | |
view.load(QtCore.QUrl('http://grooveshark.com/')) | |
view.resize(1000, 700) | |
view.setWindowTitle(__file__) | |
view.show() | |
exit(app.exec_()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment