Skip to main content

A package to build psychological Paradigms. Based on PyGame

Project description

PyParadigm

PyParadigm is a small library to build paradigms for psychological experiments. It utilizes pygame, and is installable via pip

pip install pyparadigm

You can find the documentation including an introduction and a tutorial over at: https://pyparadigm.readthedocs.io/en/latest/index.html

Changelog

  • 1.0.9
    • added the keep_aspect_ratio parameter to Surface
    • added normalize parameter to mat_to_surface()
    • added dialog module
    • fixed a bug that would cause a crash, if misc.empty_surface() was used with size but without initializing the windows
    • fixes a bug that would miss-align grid layout items, if not all rows had the same number of elements
  • 1.0.8
    • added misc.rgba for conversion of color codes to pygame.Color with alpha channel, useful for text-colors
    • Fixed a bug, that would cause a Gridlayout to crash if a None is added
    • Fixed a bug that would cause crashes when adding iterable objects with a draw method to a render object with a single child
    • Added functions:
      • is_left_click()
      • is_key_press()
  • 1.0.7
    • fixed a bug in EventListener.wait_for_n_key_presses()
    • fixed a code sample in the tutorial
  • 1.0.6
    • added special treatment for Surfaces in MouseProxy, so that the actual visible rect is obtained. For that I added a new method, Surface.compute_render_rect
  • 1.0.5
    • Fixed surface_composition.Border.call()
    • added EventListener.wait_for_unicode_char() and misc.process_char() for textinput
    • added EventListener.listen_until_return()
    • added Handler class which contains factories for handler functions that can be used with EventListener.Listen()
    • added MouseProxy, EventListener.mouse_area and EventListener.group() for basic mouse support.
  • 1.0.4
    • Added EventListener.wait_for_keys_modified
    • Added the extras module containing functions to use numpy arrays and Matplotlib colormaps
  • 1.0.3
    • EventListener.wait_for_keys supports varargs now
  • 1.0.2:
    • added imports on package level
    • added interactive parameter for misc
  • 1.0.1:
    • Added PyPi readme
  • 1.0 - release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyparadigm-1.0.9.tar.gz (394.5 kB view details)

Uploaded Source

Built Distribution

pyparadigm-1.0.9-py3-none-any.whl (51.1 kB view details)

Uploaded Python 3

File details

Details for the file pyparadigm-1.0.9.tar.gz.

File metadata

  • Download URL: pyparadigm-1.0.9.tar.gz
  • Upload date:
  • Size: 394.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for pyparadigm-1.0.9.tar.gz
Algorithm Hash digest
SHA256 1055973bce97111603e9e73a07ed0f93cc9de24c4b3a439dd4eaa3f30fadd191
MD5 a929fcdceeff7171ba6b0ec730c79d32
BLAKE2b-256 7d5e71ba9fe001841e95b784d37bf0e20834817aa2ed9f69ebd849cd0ed404f0

See more details on using hashes here.

File details

Details for the file pyparadigm-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: pyparadigm-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 51.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for pyparadigm-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 488c7de53127b86c5d407d7a77787152512696adaf7c829d52362b48e777e5ef
MD5 3351cfbf386e74d7c4f56186fc68b81a
BLAKE2b-256 576f700982e51cbf80e17b9cc0ab0a3331dc02dfcc913107e46fef1dfb57859b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page