Experimental setup of a PySide + QML app for justCheckers.

This commit is contained in:
Dorian 2014-07-05 22:54:00 -04:00
parent 499d9a75c8
commit f209dc1d87
8 changed files with 63 additions and 2 deletions

View File

@ -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
justcheckers/__init__.py Normal file
View File

23
justcheckers/app.py Normal file
View File

@ -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()

View File

@ -0,0 +1,13 @@
import QtQuick 1.0
Rectangle {
width: 200
height: 200
color: "red"
Text {
text: "justCheckers"
anchors.centerIn: parent
}
}

4
requirements-dev.txt Normal file
View File

@ -0,0 +1,4 @@
# Requirements for developing the justCheckers app
Sphinx>=1.2.2
nose>=1.3.0

3
requirements.txt Normal file
View File

@ -0,0 +1,3 @@
invoke
PySide==1.2.2

17
tasks.py Normal file
View File

@ -0,0 +1,17 @@
import os
from os import path
from invoke import task, run
@task
def docs():
build_dir = '_build'
if not path.exists(build_dir):
os.mkdir(build_dir)
run('sphinx-build -b slides . _build')
@task
def clean():
run('rm *.pyc')
run('rm _build -rv')