Mercurial > fife-parpg
comparison clients/pychan_demo/pychan_test.py @ 205:54bfd1015b35
* PyChan event handling rework (part I)
** Unified listeners
** ...hopefully more robust attach/detach code.
* Added compat, layout and also the new autopsition feature.
* Documentation
* Minor style fixes in core.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 14 Mar 2009 12:13:29 +0000 |
parents | fbc55c6f57cf |
children | c050f257cec3 |
comparison
equal
deleted
inserted
replaced
204:5816ab527da8 | 205:54bfd1015b35 |
---|---|
36 self.widget.hide() | 36 self.widget.hide() |
37 self.widget = None | 37 self.widget = None |
38 | 38 |
39 def testTimer(): | 39 def testTimer(): |
40 import timer | 40 import timer |
41 timer.init( pychan.manager.engine.getTimeManager() ) | 41 timer.init( pychan.manager.hook.engine.getTimeManager() ) |
42 def spam(): | 42 def spam(): |
43 print "SPAM SPAM" | 43 print "SPAM SPAM" |
44 return 1 | 44 return 1 |
45 repeater = timer.repeatCall(500,spam) | 45 repeater = timer.repeatCall(500,spam) |
46 def stop_spam(): | 46 def stop_spam(): |