--- a/tuikit/core/container.py Sun Feb 15 12:52:46 2015 +0100
+++ b/tuikit/core/container.py Sun Feb 15 17:50:24 2015 +0100
@@ -23,13 +23,13 @@
self.trap_focus = False
self.layout = layout_class()
- def add(self, widget):
+ def add(self, widget, *args, **kwargs):
"""Add widget into container."""
self._widgets.append(widget)
widget.parent = self
widget.window = self.window
widget.set_theme(self.theme)
- self.layout.add(widget)
+ self.layout.add(widget, *args, **kwargs)
if self.focus_widget is None and widget.can_focus():
self.focus_widget = widget