(self, parent=None, margin=0, spacing=-1)
| 68 | |
| 69 | class FlowLayout(QLayout): |
| 70 | def __init__(self, parent=None, margin=0, spacing=-1): |
| 71 | super(FlowLayout, self).__init__(parent) |
| 72 | |
| 73 | if parent is not None: |
| 74 | self.setContentsMargins(margin, margin, margin, margin) |
| 75 | |
| 76 | self.setSpacing(spacing) |
| 77 | |
| 78 | self.itemList = [] |
| 79 | |
| 80 | def __del__(self): |
| 81 | item = self.takeAt(0) |