Skip to content

Instantly share code, notes, and snippets.

@empirefx
Created January 19, 2015 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save empirefx/431e93db76dc4103d4aa to your computer and use it in GitHub Desktop.
Save empirefx/431e93db76dc4103d4aa to your computer and use it in GitHub Desktop.
Grooveshark as native app (req: python, PyQt4)
#! /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