def preferredSize(self, rowLimit, colLimit):
    if app.config.strict_debug:
        assert self.parent
        assert (rowLimit >= 0)
        assert (colLimit >= 0)
    if (self.parent and (self in self.parent.zOrder) and self.expanded):
        return (min(rowLimit, len(self.zOrder)), colLimit)
    return (1, (- 1))
def preferredSize(self, rowLimit, colLimit):
    if app.config.strict_debug:
        assert self.parent
        assert (rowLimit >= 0)
        assert (colLimit >= 0)
    if (self.parent and (self in self.parent.zOrder) and self.expanded):
        return (min(rowLimit, len(self.zOrder)), colLimit)
    return (1, (- 1))