An easy way to avoid version conflicts is to use a Python distribution with a repository and/or package manager, such as Anaconda.
After installing Anaconda, install pygame using pip install pygame
.
If you have a pre-existing Python installation you want to use, or if you want a lightweight installation without all of Anaconda, you need the following:
-
Pygame. Make sure you get the version matching your Python installation.
-
Clone this repository with git:
git clone https://github.com/rjonnal/looky
or download the zip file and unzip. -
In the resulting directory, copy
looky_config_template.py
tolooky_config.py
, and edit it the latter as you wish. In particular, the distance between the viewer and screen (SCREEN_DISTANCE_M
) must be set, as well asVERTICAL_ORIENTATION
andHORIZONTAL_ORIENTATION
. -
Run calibrate or issue
python calibrate.py
. Stick a standard (3-inch square) Post-It note to your screen and click two adjacent corners. This measures and records the monitor's pitch (DPI) in a file calleddpi.txt
. -
Run looky (or looky.bat on Windows) or issue
python __init__.py
. -
To toggle the help menu, press the
/
key. -
Use the 'm' key to cycle through display modes until the window size matches your monitor resolution. Note the display mode number (not the actual resolution, but the mode number), in case you want to enter this number in
looky_config.py
as a default display mode.