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.2.2
    • Adds pygame.font.init() to pp.init()
  • 1.2.1
    • Replaces pygame.init() with pygame.display.init() in pyparadigms init method, so not required modules are not initialized
  • 1.2.0
    • Adds the FreeFloatLayout
    • Adds the Title argument to misc.init()
  • 1.1.0
    • adds the sleeptime argument to eventlistener.listen_until_return() and eventlistener.wait_for_keypresses()
    • Mousproxys can now take handler functions of arity 4. The last argument will then be the rect of the MouseProxy. Arity 3 is still allowed
    • fixes a bug, that made a MouseProxy not match the drawArea of a child surface
    • Adds an event handler for resize events
    • Adds an event handler for Quit events
  • 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.2.2.tar.gz (416.0 kB view details)

Uploaded Source

Built Distribution

pyparadigm-1.2.2-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyparadigm-1.2.2.tar.gz
Algorithm Hash digest
SHA256 3808358b61fcb34a8bb7ddfdd29c7ade4ef5f7f3cb16cd600a9c607e186d3932
MD5 950de0c3d6ee2190d7ea5999d818df05
BLAKE2b-256 c8d8e8f163a4b82c891d15619231c204036c57fca04d7edcaf3bdb7bdf628e1f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyparadigm-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5c56c393b016bcefb4ed678688d9f2cce6f2080ebbfdbbc8626aa953ad4bdb73
MD5 2d91d8f47787ae97daaad612462af650
BLAKE2b-256 0a7c9cbb3bb48f40257c97c1842b3aa8f09b4c049029fdae0e34335d0d7a2283

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