Mercurial > fife-parpg
diff demos/pychan_demo/pychan_test.py @ 600:427150724fe1
- added new pychan demo: gui animations
FEATURES:
- shows (very basic) animations like resizing, moving and changing colors of a pychan.widget by using FIFE TimeEvents
author | chewie@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 27 Aug 2010 16:59:54 +0000 |
parents | 90d369c788c0 |
children |
line wrap: on
line diff
--- a/demos/pychan_demo/pychan_test.py Fri Aug 27 12:59:50 2010 +0000 +++ b/demos/pychan_demo/pychan_test.py Fri Aug 27 16:59:54 2010 +0000 @@ -111,13 +111,17 @@ # it later. credits.capture(lambda : credits._setText(u"Credits"), event_name="mouseExited") - # Our list of examples - # We keep a dictionary of these and fill - # the ListBox on the left with its names. + + # import example modules from dynamic import DynamicExample from styling import StylingExample from sliders import SliderExample from colortester import ColorExample + from poc_gui_animation import PocAnimations + + # Our list of examples + # We keep a dictionary of these and fill + # the ListBox on the left with its names. self.examples = { 'Absolute Positioning' : PyChanExample('gui/absolute.xml'), 'All Widgets' : PyChanExample('gui/all_widgets.xml'), @@ -126,6 +130,7 @@ 'Sliders' : SliderExample(), 'ScrollArea' : PyChanExample('gui/scrollarea.xml'), 'Colortester': ColorExample(), + 'GuiAnimations' : PocAnimations(), } self.demoList = self.gui.findChild(name='demoList') self.demoList.items = sorted(self.examples.keys())