128 |
128 |
129 width = self.header.boundingRect().width() |
129 width = self.header.boundingRect().width() |
130 height = self.header.boundingRect().height() |
130 height = self.header.boundingRect().height() |
131 if self.modules: |
131 if self.modules: |
132 width = max(width, self.modules.boundingRect().width()) |
132 width = max(width, self.modules.boundingRect().width()) |
133 height = height + self.modules.boundingRect().height() |
133 height += self.modules.boundingRect().height() |
134 latchW = width / 3.0 |
134 latchW = width / 3.0 |
135 latchH = min(15.0, latchW) |
135 latchH = min(15.0, latchW) |
136 self.setSize(width + 2 * self.margin, |
136 self.setSize(width + 2 * self.margin, |
137 height + latchH + 2 * self.margin) |
137 height + latchH + 2 * self.margin) |
138 |
138 |