MCPcopy Create free account
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QFlowLayout/Lib/flowlayout.py:70–78  ·  view source on GitHub ↗
(self, parent=None, margin=0, spacing=-1)

Source from the content-addressed store, hash-verified

68
69class 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)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected