(self)
| 53 | |
| 54 | class Window(QWidget): |
| 55 | def __init__(self): |
| 56 | super(Window, self).__init__() |
| 57 | |
| 58 | flowLayout = FlowLayout() |
| 59 | flowLayout.addWidget(QPushButton("Short")) |
| 60 | flowLayout.addWidget(QPushButton("Longer")) |
| 61 | flowLayout.addWidget(QPushButton("Different text")) |
| 62 | flowLayout.addWidget(QPushButton("More text")) |
| 63 | flowLayout.addWidget(QPushButton("Even longer button text")) |
| 64 | self.setLayout(flowLayout) |
| 65 | |
| 66 | self.setWindowTitle("Flow Layout") |
| 67 | |
| 68 | |
| 69 | class FlowLayout(QLayout): |
no test coverage detected