diff clients/editor/scripts/editor.py @ 324:e249fa887259

* Split EventListener into several internal subclasses. This fixes issue with multiple inheritance where each BaseClass.__init__() call would overwrite the previous one. This meant that you could only add EventListener to one type of event managers. * MapView now adds maps and layers to EventListener * LayerEditor should now fetch only NameClash exceptions when creating or editing layers
author cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 21 Aug 2009 14:39:54 +0000
parents e2ac8bb1a22c
children 8b125ec749d7
line wrap: on
line diff
--- a/clients/editor/scripts/editor.py	Tue Aug 18 18:03:54 2009 +0000
+++ b/clients/editor/scripts/editor.py	Fri Aug 21 14:39:54 2009 +0000
@@ -391,10 +391,10 @@
 		type = event.getType()
 		
 		if type == fife.KeyEvent.PRESSED:
-			self._eventlistener.keyPressed(event)
+			keyPressed.send(sender=self._maparea, event=event)
 		
 		elif type == fife.KeyEvent.RELEASED:
-			self._eventlistener.keyReleased(event)
+			keyReleased.send(sender=self._maparea, event=event)