Locate and understand the configuration file
| Configuration | Configure your input devices |
Location of config file
Your configuration file is located in a platform dependant directory:
- Linux and OSX:
~/.pymt/config - Windows:
...\Documents and Settings\.pymt\config
If you don't see the directory, check if you can see hidden files
Simple configuration
A PyMT GUI configuration tool is available by issuing the following command from the command line :
python -m pymt.tools.config -n
The tool is not designed to handle all the input providers. This means you can't really configure your input devices except TUIO. If you are trying to use wm_touch, wm_pen, or custom inputs, please refer to the supplemental and subtly more advanced (but not at really difficult) inputs configuration documentation.
Below we give a list of all available configuration tokens and their values and meaning.
Available tokens
| Section | Name | Default value | Description | Version |
|---|---|---|---|---|
pymt | show_fps | 0 | Display FPS information on screen | |
pymt | log_level | info | Set logger level (can be "debug", "info", "warning", "error", "critical") | |
pymt | double_tap_time | 250 | Maximum time to detect a double tap | |
pymt | double_tap_distance | 20 | Maximum distance to detect a double tap | |
pymt | retain_time | 150 | Maximum time to reuse an "up" touch | |
pymt | retain_distance | 0 | Maximum distance to detect and reuse an "up" touch | |
pymt | jitter_ignore_devices | (empty) | Ids of devices to not apply devices. (List of ids separated with comma, eg: "wm_touch,wm_pen") | 0.5 |
pymt | jitter_distance | 0 | Maximum distance to remove jittering | 0.5 |
pymt | gl_error_check | 1 | Activate error checking after each OpenGL operation | |
pymt | log_dir | logs | Default directory for log files | |
pymt | log_name | pymt_m-_.txt | Default name format for log (using strftime format) | |
pymt | log_enable | 1 | Enable log output in files | |
pymt | ignore | [] | ||
graphics | fbo | hardware | Indicate which fbo to use (can be "hardware", "software", "force-hardware") | |
graphics | fullscreen | 1 | Show pymt in a fullscreen window | |
graphics | width | 640 | Width of the window | |
graphics | height | 480 | Height of the window | |
graphics | vsync | 1 | Force vertical sync on the window | |
graphics | display | -1 | Indicate which display to use (-1 is current display, 0 is the first, 1 the second...) | |
graphics | line_smooth | 1 | Use line smoothing (0=disabled, 1=fastest, 2=niceest). | |
graphics | show_cursor | 1 | Show cursor on fullscreen | |
input | default | tuio,127.0.0.1:3333 | Default TUIO provider | |
dump | enabled | 0 | Activate dump frame | |
dump | prefix | img_ | Prefix of dump frame | |
dump | format | jpeg | Format of dump frame (can be "jpeg" or "png") | |
widgets | list_trigger_distance | 5 | Maximum distance allowed to trigger event on children in MTList widget. If the distance is more than the value, no event will be dispatched. | 0.5 |
widgets | list_friction | 10 | Friction factor for MTList | 0.5 |
widgets | list_friction_bound | 20 | Friction factor when a bound have been hit (top/down/left/right) for MTList | 0.5 |
widgets | keyboard_type | virtual | Can be "real" or "virtual". If "real", virtual keyboard will be not showed by default. | 0.5 |
Removed tokens
| Section | Name | Default value | Description |
|---|---|---|---|
pymt | show_eventstats | 0 | Show number of event call at exit |
pymt | fixccv | 0 | Activate anti-CCV bug (:p) |

