__init__.py 1.0 KB

1234567891011121314151617181920212223242526
  1. """Multi-consumer multi-producer dispatching mechanism
  2. This Python library is used e.g. in wxGUI. The purpose of the library
  3. is to provide mechanism for communication between objects in wxGUI.
  4. The library consists of two parts:
  5. * the Python Signal API which will be used in wxGUI, and
  6. * this 3rd party package PyDispatcher does the hard work.
  7. In short, simple function calls are not sufficient in the GUI, event
  8. driven and large environment with many persistent objects because
  9. using simple function calls would lead to tightly coupled code. Thus,
  10. some better mechanism is needed such as Observer design pattern. In
  11. GRASS GIS, we use the Signal system which is similar to Signals used in
  12. PyQt and other frameworks. As the underlying library, we have chosen
  13. PyDispatcher because it provides very general API which enables to
  14. implement Signal API, wide and robust functionality which makes
  15. implementation and use of Signals easier.
  16. PyDispatcher metadata:
  17. :version: 2.0.3
  18. :author: Patrick K. O'Brien
  19. :license: BSD-style, see license.txt for details
  20. """