Add a horizontal layout wrapper around the vertical layout, in order to optionally add horizontal widgets to Modes

This commit is contained in:
Micah Lee 2018-09-19 18:50:42 -07:00
parent 2b9791e07f
commit 59003635a2
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -78,7 +78,11 @@ class Mode(QtWidgets.QWidget):
# Layout
self.layout = QtWidgets.QVBoxLayout()
self.layout.addWidget(self.primary_action)
self.setLayout(self.layout)
self.horizontal_layout_wrapper = QtWidgets.QHBoxLayout()
self.horizontal_layout_wrapper.addLayout(self.layout)
self.setLayout(self.horizontal_layout_wrapper)
def init(self):
"""