Mercurial > fife-parpg
comparison engine/extensions/basicapplication.py @ 154:d29593182f40
- modified clicklabel to provide a mouse listener for hover events
- modified clicklabel.i to make new methods available for python
- added LabelListener to pychan wrapper, as well as two new methods to Label class to set enter / exit callbacks
NOTE:
author | chewie@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 11 Oct 2008 14:13:56 +0000 |
parents | d2f1e81fbe2c |
children | bb9902910067 |
comparison
equal
deleted
inserted
replaced
153:d8e32b4adc5c | 154:d29593182f40 |
---|---|
27 | 27 |
28 def keyPressed(self, evt): | 28 def keyPressed(self, evt): |
29 keyval = evt.getKey().getValue() | 29 keyval = evt.getKey().getValue() |
30 if keyval == fife.Key.ESCAPE: | 30 if keyval == fife.Key.ESCAPE: |
31 self.app.quit() | 31 self.app.quit() |
32 elif keyval == fife.Key.F10: | |
33 self.engine.getGuiManager().getConsole().toggleShowHide() | |
34 evt.consume() | |
32 | 35 |
33 def keyReleased(self, evt): | 36 def keyReleased(self, evt): |
34 pass | 37 pass |
35 | 38 |
36 class ApplicationBase(object): | 39 class ApplicationBase(object): |