# HG changeset patch # User KarstenBock@gmx.net # Date 1317805051 -7200 # Node ID 30dbbae653add2c4015af116b62d15ab16ecd855 # Parent f2ef124128db75e683495b4dfa2b8b2aa6576b01 If gui_file, in the ContainerGUIBase constructor, is a widget self.gui will now be set to it. diff -r f2ef124128db -r 30dbbae653ad gui/containergui_base.py --- a/gui/containergui_base.py Wed Oct 05 10:54:56 2011 +0200 +++ b/gui/containergui_base.py Wed Oct 05 10:57:31 2011 +0200 @@ -28,7 +28,9 @@ def __init__(self, controller, gui_file): self.controller = controller - if isinstance(gui_file, StringTypes): + if isinstance(gui_file, pychan.Widget): + self.gui = gui_file + elif isinstance(gui_file, StringTypes): xml_file = vfs.VFS.open(gui_file) self.gui = pychan.loadXML(xml_file) else: