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 845fe3f945
commit f32f710280

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):
"""