Simplify build_tab()
This commit is contained in:
@@ -32,23 +32,9 @@ class PreferencesSectionUI(QtWidgets.QWidget):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
def build_tab(self):
|
def build_tab(self):
|
||||||
tab = QtWidgets.QWidget()
|
|
||||||
|
|
||||||
tab_lay = QtWidgets.QVBoxLayout()
|
|
||||||
tab_lay.setContentsMargins(2, 2, 2, 2)
|
|
||||||
tab.setLayout(tab_lay)
|
|
||||||
|
|
||||||
# Not sure what the point of this is ???
|
|
||||||
hlay1 = QtWidgets.QHBoxLayout()
|
|
||||||
hlay1.addStretch()
|
|
||||||
tab_lay.addLayout(hlay1)
|
|
||||||
|
|
||||||
scroll_area = QtWidgets.QScrollArea()
|
scroll_area = QtWidgets.QScrollArea()
|
||||||
scroll_area.setWidget(self)
|
scroll_area.setWidget(self)
|
||||||
self.show()
|
return scroll_area
|
||||||
tab_lay.addWidget(scroll_area)
|
|
||||||
|
|
||||||
return tab
|
|
||||||
|
|
||||||
def get_tab_id(self) -> str:
|
def get_tab_id(self) -> str:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class PreferencesUIManager:
|
|||||||
:param defaults: a dictionary storage where all the application settings are stored
|
:param defaults: a dictionary storage where all the application settings are stored
|
||||||
:param data_path: a path to the file where all the preferences are stored for persistence
|
:param data_path: a path to the file where all the preferences are stored for persistence
|
||||||
:param ui: reference to the FlatCAMGUI class which constructs the UI
|
:param ui: reference to the FlatCAMGUI class which constructs the UI
|
||||||
:param inform: a pyqtSignal used to display information's in the StatusBar of the GUI
|
:param inform: a pyqtSignal used to display information in the StatusBar of the GUI
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self.defaults = defaults
|
self.defaults = defaults
|
||||||
|
|||||||
Reference in New Issue
Block a user