mirror of https://github.com/cutefishos/appmotor
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			461 B
		
	
	
	
		
			Python
		
	
			
		
		
	
	
			19 lines
		
	
	
		
			461 B
		
	
	
	
		
			Python
		
	
#!/usr/bin/python
 | 
						|
# -*- coding: utf-8 -*-
 | 
						|
 
 | 
						|
import sys
 | 
						|
from PySide.QtCore import *
 | 
						|
from PySide.QtGui import *
 | 
						|
from PySide.QtDeclarative import QDeclarativeView
 | 
						|
 
 | 
						|
# Create Qt application and the QDeclarative view
 | 
						|
app = QApplication(sys.argv)
 | 
						|
view = QDeclarativeView()
 | 
						|
# Create an URL to the QML file
 | 
						|
url = QUrl('/usr/share/applauncherd-testscripts/view.qml')
 | 
						|
# Set the QML file and show
 | 
						|
view.setSource(url)
 | 
						|
view.show()
 | 
						|
# Enter Qt main loop
 | 
						|
sys.exit(app.exec_())
 |