def __init__(self, margins=_defaults['<STR_LIT>']):
BaseObject.__init__(self)<EOL>self._widget = _g.Qt.QtGui.QWidget()<EOL>self._layout = _g.Qt.QtGui.QGridLayout()<EOL>self._widget.setLayout(self._layout)<EOL>self._auto_row      = <NUM_LIT:0><EOL>self._auto_column   = <NUM_LIT:0><EOL>self.objects    = []<EOL>self.get_row_count    = self._layout.rowCount<EOL>self.get_column_count = self._layout.columnCount<EOL>if margins==False: self._layout.setContentsMargins(<NUM_LIT:0>,<NUM_LIT:0>,<NUM_LIT:0>,<NUM_LIT:0>)<EOL>else:              self._layout.setContentsMargins(*margins)<EOL>if not hasattr(self, '<STR_LIT>'): self.show = self._widget.show<EOL>if not hasattr(self, '<STR_LIT>'): self.hide = self._widget.hide<EOL>
This creates a grid layout that can contain other Elements
(including other grid and docked layouts)