comparison 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
comparison
equal deleted inserted replaced
323:b64ce990abb1 324:e249fa887259
389 def __sendKeyEvent(self, event, **kwargs): 389 def __sendKeyEvent(self, event, **kwargs):
390 """ Function used to capture key events for EventListener """ 390 """ Function used to capture key events for EventListener """
391 type = event.getType() 391 type = event.getType()
392 392
393 if type == fife.KeyEvent.PRESSED: 393 if type == fife.KeyEvent.PRESSED:
394 self._eventlistener.keyPressed(event) 394 keyPressed.send(sender=self._maparea, event=event)
395 395
396 elif type == fife.KeyEvent.RELEASED: 396 elif type == fife.KeyEvent.RELEASED:
397 self._eventlistener.keyReleased(event) 397 keyReleased.send(sender=self._maparea, event=event)
398 398
399 399
400 400
401 401