Sources


Sources

This PyQRS_source.zip file contains the files necessary to run PyQRS:
calc.py, distrib.py, main.py, pyqrs.kv, pyqrs_graphics.py, pyqrs_slider.py, cursor_blue_transparant.png, cursor_red_transparant.png, icon.png.

  1. The file calc.py is a small auxiliary file. It containts a function evaluate() which parses a string containing a numerical expression and returns its value.
  2. The file distrib.py contains code that defines probability distributions.
  3. main.py is the main file. PyQRS is run by issuing the command python main.py, assuming that python3 is used.
  4. pyqrs.kv is the description of the graphical user interface (widgets) for Kivy.
  5. The module pyqrs_graphics.py is used in the construction of the graphs.
  6. The slider in PyQRS uses two cursors. To this end the Kivy module slider.py was adapted and renamed pyqrs_slider.py.
  7. The remaining three .png-files are used for the slider cursors and the program icon.

Apart from Python3 you will need the modules mentioned in the lines 11 - 27 from main.py.

Note: ascii-diagrams in calc.py were constructed using https://metacpan.org/pod/App::Asciio