Mercurial > fife-parpg
comparison demos/pychan_demo/pychan_test.py @ 566:90d369c788c0
Updated the basicapplication extension to initialize pychan and modal execution. Also fixed the demos and editor to reflect this change.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 28 Jun 2010 15:43:42 +0000 |
parents | 3a6441d9e01c |
children | 427150724fe1 |
comparison
equal
deleted
inserted
replaced
565:8d0a4e87f24d | 566:90d369c788c0 |
---|---|
84 def __init__(self): | 84 def __init__(self): |
85 # Let the ApplicationBase initialise FIFE | 85 # Let the ApplicationBase initialise FIFE |
86 super(DemoApplication,self).__init__() | 86 super(DemoApplication,self).__init__() |
87 | 87 |
88 # Init Pychan | 88 # Init Pychan |
89 pychan.init(self.engine,debug=False) | |
90 pychan.loadFonts("fonts/freefont.fontdef") | 89 pychan.loadFonts("fonts/freefont.fontdef") |
91 pychan.manager.setDefaultFont("FreeSans") | 90 pychan.manager.setDefaultFont("FreeSans") |
92 pychan.setupModalExecution(self.mainLoop,self.breakFromMainLoop) | 91 pychan.setupModalExecution(self.mainLoop,self.breakFromMainLoop) |
93 | 92 |
94 # Build the main GUI | 93 # Build the main GUI |