Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svisser/gtk3-tic-tac-toe
Implementation of Tic Tac Toe using GTK+ 3, Mac OS X and Python 3.5.
https://github.com/svisser/gtk3-tic-tac-toe
Last synced: 22 days ago
JSON representation
Implementation of Tic Tac Toe using GTK+ 3, Mac OS X and Python 3.5.
- Host: GitHub
- URL: https://github.com/svisser/gtk3-tic-tac-toe
- Owner: svisser
- License: other
- Created: 2015-12-29T21:15:52.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-30T16:08:06.000Z (about 9 years ago)
- Last Synced: 2024-10-18T20:31:46.431Z (3 months ago)
- Language: Python
- Homepage:
- Size: 103 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Tic Tac Toe using GTK+ 3, Mac OS X and Python 3.5
=================================================Implementation of Tic Tac Toe using GTK+ 3, Mac OS X and Python 3.5.
.. image:: static/screenshot.png
:height: 434px
:width: 352px
:scale: 100 %
:alt: Tic Tac Toe
:align: leftInstallation
------------The installation steps below assume that you have installed Python 3.5 using `MacPorts `_:
.. code-block:: bash
$ sudo port install python35
Install the necessary dependencies for this package:
.. code-block:: bash
$ sudo port install gtk3 gobject-introspection py35-gobject3
This installs `GTK+ 3 `_,
`GObject Introspection `_
and GObject bindings for Python 3.5.It is recommended that you create a virtualenv to install this Python project locally. This is
easier when you have `virtualenvwrapper `_ installed:.. code-block:: bash
$ pip install virtualenv virtualenvwrapper
When creating the virtualenv for this project you need to:
- specify the Python 3.5 interpreter for which you have installed the GObject Python bindings, and
- ensure that the Python interpreter in the virtualenv has access to the Python packages installed for that system Python interpreter:.. code-block:: bash
$ mkvirtualenv gtk3-tic-tac-toe \
--python=/opt/local/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 \
--system-site-packagesLastly, install `XQuartz `_ to run X Window System on Mac OS X.
How to run
----------You need to have XQuartz running.
You can then start the application using:
.. code-block:: bash
python -m tictactoe
Development and testing
-----------------------Install the requirements for development:
.. code-block:: bash
$ pip install -r dev-requirements.txt
Run the tests:
.. code-block:: bash
$ py.test