I am trying to make a python app that basically views a web page with QUICKLY on Ubuntu 12.04.
When I do sudo quickly run
in terminal, I always get this error:
(saikoroubuntu:5283): GLib-GIO-ERROR **: Settings schema
'org.gnome.desktop.interface' is not installed
What seems to be the issue?
Here is my code:
#!/usr/bin/env python
import gtk
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *
app = QApplication(sys.argv)
web = QWebView()
web.load(QUrl("http://shifat.tk/apps/saikoro/ios"))
web.show()
sys.exit(app.exec_())
I'm basically using the code I found on Stackoverflow: "How to make a simple cross-platform webbrowser with Python?"
import gtk
. Gtk is an alternative to Qt, so you wouldn't normally use both in one application. Also, you probably don't needsudo
to run your app.import gtk
and with or withoutsudo
works for me. I guess you have to give more information. Are you really using the standard Ubuntu 12.04?