Skip to content
Snippets Groups Projects
Commit 1b353159 authored by dsentinel's avatar dsentinel
Browse files

Add scroll bar to NRL wizard.

parent 5e056123
No related branches found
No related tags found
1 merge request!6Add scroll bar to NRL wizard.
......@@ -59,8 +59,17 @@ class NRLPage(QtWidgets.QWizardPage):
self.nrl_dict = nrl_dict
def initializePage(self):
layout = QtWidgets.QVBoxLayout()
self.setLayout(layout)
self.setLayout(QtWidgets.QVBoxLayout())
scroll_area = QtWidgets.QScrollArea(self)
self.layout().addWidget(scroll_area)
scroll_area.setWidgetResizable(True)
inner = QtWidgets.QFrame(scroll_area)
layout = QtWidgets.QVBoxLayout(inner)
inner.setLayout(layout)
scroll_area.setWidget(inner)
self.final = False
# Last page
if isinstance(self.nrl_dict, tuple):
......@@ -111,6 +120,7 @@ if __name__ == '__main__':
import sys
app = QtWidgets.QApplication(sys.argv)
# Sensor
w = NRLWizard()
ret = w.exec_()
print(ret)
......@@ -118,6 +128,8 @@ if __name__ == '__main__':
print(w.q_and_as)
print(w.final)
print(w.nickname)
# Datalogger
w = NRLWizard(DATALOGGER)
ret = w.exec_()
if ret:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment