Mercurial > fife-parpg
changeset 586:dc19d9e38880
- added small addition to pychan documentation - not sure if we should file a bug ticket here:
- pychan widgets have beforeShow / afterHide methods, which can be overriden (and are empty)
- BUT if you have a container widget, those methods contain the call _resetTiling(), which seems to be
vital for the layout engine
- so, on overriding the containers beforeShow, you'll also loose this call - therefore e.g. a background_image
is "invisible"
author | chewie@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 08 Aug 2010 22:54:11 +0000 |
parents | c2de5aafe788 |
children | 2de93d36ca6d |
files | engine/python/fife/extensions/pychan/widgets/widget.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/engine/python/fife/extensions/pychan/widgets/widget.py Sun Aug 08 15:56:19 2010 +0000 +++ b/engine/python/fife/extensions/pychan/widgets/widget.py Sun Aug 08 22:54:11 2010 +0000 @@ -291,6 +291,11 @@ This method is called just before the widget is shown. You can override this in derived widgets to add finalization behaviour. + + NOTE: + - if your widget is a container, you have to call + _resetTiling(), as you will loose this call by using + your override method """ def afterHide(self):