3 from PySide import QtCore, QtGui, QtDeclarative
5 class iTip(QtCore.QObject):
7 def search(self, line, station):
11 if __name__ == '__main__':
14 app = QtGui.QApplication(sys.argv)
16 view = QtDeclarative.QDeclarativeView()
18 # instantiate the Python object
21 # expose the object to QML
22 context = view.rootContext()
23 context.setContextProperty("itip", itip)
25 view.setSource(QtCore.QUrl('gotovienna/qml/main.qml'))