def METHOD_NAME(self, TraceNGPreferencesPageWidget):
    TraceNGPreferencesPageWidget.setObjectName("TraceNGPreferencesPageWidget")
    TraceNGPreferencesPageWidget.resize(623, 280)
    self.verticalLayout_2 = QtWidgets.QVBoxLayout(TraceNGPreferencesPageWidget)
    self.verticalLayout_2.setObjectName("verticalLayout_2")
    self.uiTabWidget = QtWidgets.QTabWidget(TraceNGPreferencesPageWidget)
    self.uiTabWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
    self.uiTabWidget.setObjectName("uiTabWidget")
    self.uiGeneralSettingsTabWidget = QtWidgets.QWidget()
    self.uiGeneralSettingsTabWidget.setObjectName("uiGeneralSettingsTabWidget")
    self.verticalLayout = QtWidgets.QVBoxLayout(self.uiGeneralSettingsTabWidget)
    self.verticalLayout.setContentsMargins(10, 10, 10, 10)
    self.verticalLayout.setObjectName("verticalLayout")
    self.uiTraceNGPathLabel = QtWidgets.QLabel(self.uiGeneralSettingsTabWidget)
    self.uiTraceNGPathLabel.setObjectName("uiTraceNGPathLabel")
    self.verticalLayout.addWidget(self.uiTraceNGPathLabel)
    self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
    self.horizontalLayout_5.setObjectName("horizontalLayout_5")
    self.uiTraceNGPathLineEdit = QtWidgets.QLineEdit(self.uiGeneralSettingsTabWidget)
    sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
    sizePolicy.setHorizontalStretch(0)
    sizePolicy.setVerticalStretch(0)
    sizePolicy.setHeightForWidth(self.uiTraceNGPathLineEdit.sizePolicy().hasHeightForWidth())
    self.uiTraceNGPathLineEdit.setSizePolicy(sizePolicy)
    self.uiTraceNGPathLineEdit.setObjectName("uiTraceNGPathLineEdit")
    self.horizontalLayout_5.addWidget(self.uiTraceNGPathLineEdit)
    self.uiTraceNGPathToolButton = QtWidgets.QToolButton(self.uiGeneralSettingsTabWidget)
    self.uiTraceNGPathToolButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextOnly)
    self.uiTraceNGPathToolButton.setObjectName("uiTraceNGPathToolButton")
    self.horizontalLayout_5.addWidget(self.uiTraceNGPathToolButton)
    self.verticalLayout.addLayout(self.horizontalLayout_5)
    spacerItem = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
    self.verticalLayout.addItem(spacerItem)
    self.uiTabWidget.addTab(self.uiGeneralSettingsTabWidget, "")
    self.verticalLayout_2.addWidget(self.uiTabWidget)
    self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
    self.horizontalLayout_2.setObjectName("horizontalLayout_2")
    spacerItem1 = QtWidgets.QSpacerItem(138, 17, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
    self.horizontalLayout_2.addItem(spacerItem1)
    self.uiRestoreDefaultsPushButton = QtWidgets.QPushButton(TraceNGPreferencesPageWidget)
    self.uiRestoreDefaultsPushButton.setObjectName("uiRestoreDefaultsPushButton")
    self.horizontalLayout_2.addWidget(self.uiRestoreDefaultsPushButton)
    self.verticalLayout_2.addLayout(self.horizontalLayout_2)
    self.retranslateUi(TraceNGPreferencesPageWidget)
    self.uiTabWidget.setCurrentIndex(0)
    QtCore.QMetaObject.connectSlotsByName(TraceNGPreferencesPageWidget)