# HG changeset patch # User chewie@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1281308051 0 # Node ID dc19d9e388806aba8e81f04b6dc10cb76a609ab0 # Parent c2de5aafe78881f812079be0b69d5ca8427f42f5 - 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" diff -r c2de5aafe788 -r dc19d9e38880 engine/python/fife/extensions/pychan/widgets/widget.py --- 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):