Mercurial > fife-parpg
comparison clients/pychan_demo/pychan_test.py @ 330:33dd55160a9d
* Added a new method Widget.getNamedChildren
* Made the distribute and mapEvents methods (a whole lot) faster.
* Added a new (internal) attribute to Widget (has_name)
* Added a small decorator for profiling rarely called functions.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 24 Aug 2009 11:45:28 +0000 |
parents | 51cc05d862f2 |
children | 48c99636453e |
comparison
equal
deleted
inserted
replaced
329:aca5744f017a | 330:33dd55160a9d |
---|---|
23 Example class. | 23 Example class. |
24 """ | 24 """ |
25 def __init__(self,xmlFile): | 25 def __init__(self,xmlFile): |
26 self.xmlFile = xmlFile | 26 self.xmlFile = xmlFile |
27 self.widget = None | 27 self.widget = None |
28 | 28 |
29 def start(self): | 29 def start(self): |
30 """ | 30 """ |
31 The Example Protocoll: start | 31 The Example Protocoll: start |
32 """ | 32 """ |
33 # For simplicity the most basic examples should define | 33 # For simplicity the most basic examples should define |
40 } | 40 } |
41 # Since the basic example are not required to | 41 # Since the basic example are not required to |
42 # supply close and ok button, we 'ignoreMissing' | 42 # supply close and ok button, we 'ignoreMissing' |
43 self.widget.mapEvents(eventMap, ignoreMissing = True) | 43 self.widget.mapEvents(eventMap, ignoreMissing = True) |
44 self.widget.show() | 44 self.widget.show() |
45 | |
46 #from pprint import pprint | |
47 #pprint(self.widget.getNamedChildren()) | |
45 | 48 |
46 def stop(self): | 49 def stop(self): |
47 """ | 50 """ |
48 The Example Protocoll: stop | 51 The Example Protocoll: stop |
49 """ | 52 """ |