Hi,
some funny code I struggled with it last hour :D ..
swap 2 widgets in layout
`
to_remove = sorted(
((source_index, source_w), (sink_index, sink_w)),
key=lambda x: x[0], reverse=True)
self._layout.removeWidget(to_remove[0][1])
self._layout.removeWidget(to_remove[1][1])
self._layout.insertWidget(to_remove[1][0], to_remove[0][1])
self._layout.insertWidget(to_remove[0][0], to_remove[1][1])
`