events.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. """!
  2. @package core.events
  3. @brief General events
  4. Put here only truly general events. Once you find that your event can be
  5. generated in more than one class, put your event here. Otherwise,
  6. leave it in your class file.
  7. General notice:
  8. Command events are propagated to parent windows. However they do not propagate
  9. beyond dialogs. Events do not propagate at all.
  10. (C) 2012 by the GRASS Development Team
  11. This program is free software under the GNU General Public License
  12. (>=v2). Read the file COPYING that comes with GRASS for details.
  13. @author Vaclav Petras <wenzeslaus gmail.com>
  14. """
  15. from wx.lib.newevent import NewCommandEvent
  16. # Notification event intended to update statusbar.
  17. # The message attribute contains the text of the message (plain text)
  18. gShowNotification, EVT_SHOW_NOTIFICATION = NewCommandEvent()
  19. # Occurs event when some map is created or updated by a module.
  20. # attributes: name: map name, ltype: map type,
  21. # add: if map should be added to layer tree (questionable attribute)
  22. gMapCreated, EVT_MAP_CREATED = NewCommandEvent()