Skip to content

Commit

Permalink
Python script for quick QML prototyping on the device.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Oct 9, 2011
1 parent 092864a commit f251e45
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions quicktest.py
@@ -0,0 +1,14 @@
#!/usr/bin/python
import os, sys, signal
from PySide import QtGui, QtDeclarative

here = os.path.dirname(__file__)
qml_file = os.path.join(here, 'qml/TimeTracker/main.qml')

app = QtGui.QApplication(sys.argv)
view = QtDeclarative.QDeclarativeView(qml_file)
view.showFullScreen()

if __name__ == '__main__':
signal.signal(signal.SIGINT, signal.SIG_DFL) # otherwise PySide ignores ^C
app.exec_()

0 comments on commit f251e45

Please sign in to comment.