Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 556 Bytes

File metadata and controls

14 lines (9 loc) · 556 Bytes

PyQtFlowLayout

The flow layout that many have shared from the given examples needs additional methods to become really useful, in particular, I needed it to be able to propagate up into a scrollable wrapper.

Example

Test suite generates random words in a random number of puhbuttons. The scroll control appears when the window is resized.

Usage:

scroller = ScrollingFlowWidget()
scroller.addWidget( QtGui.QPushButton("Push Me") )
scroller.addWidget( QtGui.QPushButton("Don't push") )
...