Experimental setup of a PySide + QML app for justCheckers.
This commit is contained in:
parent
499d9a75c8
commit
f209dc1d87
|
@ -5,7 +5,7 @@ justCheckers - README!
|
|||
About the Project
|
||||
-----------------
|
||||
|
||||
*justCheckers* is an advanced open source checkers game for Android. The aim of
|
||||
*justCheckers* is an advanced, cross-platform open source checkers game. The aim of
|
||||
the project is to make a game capable of supporting:
|
||||
|
||||
- Skinning
|
||||
|
@ -24,3 +24,4 @@ Links
|
|||
|
||||
- Project website: http://justcheckers.org/
|
||||
- Project @ Github: https://github.com/dorianpula/justcheckers
|
||||
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
import sys
|
||||
|
||||
from PySide.QtCore import *
|
||||
from PySide.QtGui import *
|
||||
from PySide.QtDeclarative import QDeclarativeView
|
||||
|
||||
def main():
|
||||
# Create app
|
||||
app = QApplication(sys.argv)
|
||||
|
||||
# Setup the QML declartive view
|
||||
view = QDeclarativeView()
|
||||
menu_view_url = QUrl('menu_view.qml')
|
||||
view.setSource(menu_view_url)
|
||||
view.show()
|
||||
|
||||
# Enter app loop
|
||||
app.exec_()
|
||||
sys.exit()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
import QtQuick 1.0
|
||||
|
||||
Rectangle {
|
||||
width: 200
|
||||
height: 200
|
||||
color: "red"
|
||||
|
||||
Text {
|
||||
text: "justCheckers"
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# Requirements for developing the justCheckers app
|
||||
Sphinx>=1.2.2
|
||||
nose>=1.3.0
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
invoke
|
||||
PySide==1.2.2
|
||||
|
Loading…
Reference in New Issue