[GRASS-SVN] r62359 - grass/trunk/lib/python/pydispatch

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 22 07:25:51 PDT 2014


Author: neteler
Date: 2014-10-22 07:25:51 -0700 (Wed, 22 Oct 2014)
New Revision: 62359

Modified:
   grass/trunk/lib/python/pydispatch/__init__.py
Log:
pydispatch docs: added minimalistic intro (from Vaclav email 2013)

Modified: grass/trunk/lib/python/pydispatch/__init__.py
===================================================================
--- grass/trunk/lib/python/pydispatch/__init__.py	2014-10-22 13:56:00 UTC (rev 62358)
+++ grass/trunk/lib/python/pydispatch/__init__.py	2014-10-22 14:25:51 UTC (rev 62359)
@@ -1,6 +1,25 @@
 """Multi-consumer multi-producer dispatching mechanism
+
+This Python library is used e.g. in wxGUI. The purpose of the library
+is to provide mechanism for communication between objects in wxGUI.
+The library consists of two parts:
+
+* the Python Signal API which will be used in wxGUI, and
+* this 3rd party package PyDispatcher does the hard work.
+
+In short, simple function calls are not sufficient in the GUI, event
+driven and large environment with many persistent objects because
+using simple function calls would lead to tightly coupled code. Thus,
+some better mechanism is needed such as Observer design pattern. In
+GRASS GIS, we use the Signal system which is similar to Signals used in
+PyQt and other frameworks. As the underlying library, we have chosen
+PyDispatcher because it provides very general API which enables to
+implement Signal API, wide and robust functionality which makes
+implementation and use of Signals easier.
+
+PyDispatcher metadata:
+
+:version: 2.0.3
+:author: Patrick K. O'Brien
+:license: BSD-style, see license.txt for details
 """
-__version__ = "2.0.3"
-__author__ = "Patrick K. O'Brien"
-__license__ = "BSD-style, see license.txt for details"
-



More information about the grass-commit mailing list