def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(640, 320) self.gridLayout = QtWidgets.QGridLayout(Dialog) self.gridLayout.setSpacing(0) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setObjectName("gridLayout") self.groupBox = QtWidgets.QGroupBox(Dialog) self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.checkBox = QtWidgets.QCheckBox(self.groupBox) self.checkBox.setObjectName("checkBox") self.gridLayout_2.addWidget(self.checkBox, 0, 0, 1, 1) self.tableWidget = QtWidgets.QTableWidget(self.groupBox) self.tableWidget.setEditTriggers( QtWidgets.QAbstractItemView.DoubleClicked | QtWidgets.QAbstractItemView.EditKeyPressed) self.tableWidget.setProperty("showDropIndicator", False) self.tableWidget.setDragDropOverwriteMode(False) self.tableWidget.setSelectionMode( QtWidgets.QAbstractItemView.SingleSelection) self.tableWidget.setSelectionBehavior( QtWidgets.QAbstractItemView.SelectRows) self.tableWidget.setShowGrid(False) self.tableWidget.setCornerButtonEnabled(False) self.tableWidget.setColumnCount(2) self.tableWidget.setObjectName("tableWidget") self.tableWidget.setRowCount(0) item = QtWidgets.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(1, item) self.tableWidget.horizontalHeader().setVisible(False) self.tableWidget.horizontalHeader().setDefaultSectionSize(250) self.tableWidget.horizontalHeader().setStretchLastSection(False) self.tableWidget.verticalHeader().setVisible(False) self.gridLayout_2.addWidget(self.tableWidget, 1, 0, 1, 1) self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1) self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog)
def _setup_status_bar(self): """ Adds some labels to the tool bar: - format (free or fixed) - encoding - cursor position (line:column) """ # encoding self._lbl_encoding = QtWidgets.QLabel() self._lbl_encoding.setFrameShape(QtWidgets.QFrame.NoFrame) self._lbl_encoding.setAlignment( QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter) self._lbl_encoding.setText('UTF-8') # format self._cb_free_format = QtWidgets.QCheckBox('Free format') self._cb_free_format.setChecked(Settings().free_format) self._cb_free_format.toggled.connect(self._on_free_format_toggled) # cursor position self._lbl_cursor = QtWidgets.QLabel() self._lbl_cursor.setFrameShape(QtWidgets.QFrame.NoFrame) self._lbl_cursor.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter) self._lbl_cursor.setText('1:1') # path self._lbl_path = QtWidgets.QLabel() self._lbl_path.setFrameShape(QtWidgets.QFrame.NoFrame) self._lbl_path.setText('n/a') # linter control button linter_btn = QtWidgets.QToolButton(self.ui.statusbar) linter_btn.setDefaultAction(self.ui.actionEnableLinter) self.ui.statusbar.addWidget(self._lbl_path, True) self.ui.statusbar.addAction(self.ui.actionEnableLinter) self.ui.statusbar.addPermanentWidget(linter_btn) self.ui.statusbar.addPermanentWidget(self._cb_free_format) self.ui.statusbar.addPermanentWidget(self._lbl_cursor) self.ui.statusbar.addPermanentWidget(self._lbl_encoding) self.ui.statusbar.setStyleSheet( 'QStatusBar::item { border: 0px solid black };')
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(668, 645) self.verticalLayout = QtWidgets.QVBoxLayout(Form) self.verticalLayout.setObjectName("verticalLayout") self.header = QtWidgets.QLabel(Form) self.header.setStyleSheet("border-radius: 3px;\n" "background-color: rgb(161, 161, 161);\n" "padding: 10px;") self.header.setAlignment(QtCore.Qt.AlignCenter) self.header.setObjectName("header") self.verticalLayout.addWidget(self.header) self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setObjectName("groupBox") self.formLayout = QtWidgets.QFormLayout(self.groupBox) self.formLayout.setFieldGrowthPolicy( QtWidgets.QFormLayout.ExpandingFieldsGrow) self.formLayout.setObjectName("formLayout") self.label = QtWidgets.QLabel(self.groupBox) self.label.setObjectName("label") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.line_edit_font = QtWidgets.QLineEdit(self.groupBox) self.line_edit_font.setObjectName("line_edit_font") self.horizontalLayout_2.addWidget(self.line_edit_font) self.bt_font = QtWidgets.QToolButton(self.groupBox) self.bt_font.setObjectName("bt_font") self.horizontalLayout_2.addWidget(self.bt_font) self.formLayout.setLayout(0, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2) self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setObjectName("label_3") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_3) self.spinbox_font_size = QtWidgets.QSpinBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.spinbox_font_size.sizePolicy().hasHeightForWidth()) self.spinbox_font_size.setSizePolicy(sizePolicy) self.spinbox_font_size.setObjectName("spinbox_font_size") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.spinbox_font_size) self.label_4 = QtWidgets.QLabel(self.groupBox) self.label_4.setObjectName("label_4") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_4) self.list_color_schemes = QtWidgets.QListWidget(self.groupBox) self.list_color_schemes.setObjectName("list_color_schemes") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.list_color_schemes) self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setObjectName("label_2") self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_2) self.checkbox_whitespaces = QtWidgets.QCheckBox(self.groupBox) self.checkbox_whitespaces.setText("") self.checkbox_whitespaces.setObjectName("checkbox_whitespaces") self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.checkbox_whitespaces) self.verticalLayout.addWidget(self.groupBox) self.groupBox_2 = QtWidgets.QGroupBox(Form) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout.setObjectName("gridLayout") self.edit_preview = PyCodeEdit(self.groupBox_2) self.edit_preview.setObjectName("edit_preview") self.gridLayout.addWidget(self.edit_preview, 0, 0, 1, 1) self.verticalLayout.addWidget(self.groupBox_2) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, SearchPanel): SearchPanel.setObjectName("SearchPanel") SearchPanel.resize(884, 90) SearchPanel.setStyleSheet("") self.verticalLayout = QtWidgets.QVBoxLayout(SearchPanel) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.frame = QtWidgets.QFrame(SearchPanel) self.frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.frame.setFrameShadow(QtWidgets.QFrame.Raised) self.frame.setObjectName("frame") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame) self.verticalLayout_2.setContentsMargins(9, 9, 9, 9) self.verticalLayout_2.setSpacing(9) self.verticalLayout_2.setObjectName("verticalLayout_2") self.widgetSearch = QtWidgets.QWidget(self.frame) self.widgetSearch.setObjectName("widgetSearch") self.horizontalLayout = QtWidgets.QHBoxLayout(self.widgetSearch) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setObjectName("horizontalLayout") self.labelSearch = QtWidgets.QLabel(self.widgetSearch) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.labelSearch.sizePolicy().hasHeightForWidth()) self.labelSearch.setSizePolicy(sizePolicy) self.labelSearch.setMinimumSize(QtCore.QSize(0, 0)) self.labelSearch.setMaximumSize(QtCore.QSize(18, 18)) self.labelSearch.setText("") self.labelSearch.setPixmap(QtGui.QPixmap(":/pycode-icons/rc/edit-find.png")) self.labelSearch.setScaledContents(True) self.labelSearch.setObjectName("labelSearch") self.horizontalLayout.addWidget(self.labelSearch) self.lineEditSearch = PromptLineEdit(self.widgetSearch) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEditSearch.sizePolicy().hasHeightForWidth()) self.lineEditSearch.setSizePolicy(sizePolicy) self.lineEditSearch.setMinimumSize(QtCore.QSize(200, 0)) self.lineEditSearch.setObjectName("lineEditSearch") self.horizontalLayout.addWidget(self.lineEditSearch) self.toolButtonPrevious = QtWidgets.QToolButton(self.widgetSearch) self.toolButtonPrevious.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/pyqode_icons/rc/go-up.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolButtonPrevious.setIcon(icon) self.toolButtonPrevious.setObjectName("toolButtonPrevious") self.horizontalLayout.addWidget(self.toolButtonPrevious) self.toolButtonNext = QtWidgets.QToolButton(self.widgetSearch) self.toolButtonNext.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/pycode-icons/rc/go-down.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolButtonNext.setIcon(icon1) self.toolButtonNext.setObjectName("toolButtonNext") self.horizontalLayout.addWidget(self.toolButtonNext) self.checkBoxRegex = QtWidgets.QCheckBox(self.widgetSearch) self.checkBoxRegex.setObjectName("checkBoxRegex") self.horizontalLayout.addWidget(self.checkBoxRegex) self.checkBoxCase = QtWidgets.QCheckBox(self.widgetSearch) self.checkBoxCase.setStyleSheet("") self.checkBoxCase.setObjectName("checkBoxCase") self.horizontalLayout.addWidget(self.checkBoxCase) self.checkBoxWholeWords = QtWidgets.QCheckBox(self.widgetSearch) self.checkBoxWholeWords.setObjectName("checkBoxWholeWords") self.horizontalLayout.addWidget(self.checkBoxWholeWords) self.checkBoxInSelection = QtWidgets.QCheckBox(self.widgetSearch) self.checkBoxInSelection.setObjectName("checkBoxInSelection") self.horizontalLayout.addWidget(self.checkBoxInSelection) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.labelMatches = QtWidgets.QLabel(self.widgetSearch) self.labelMatches.setObjectName("labelMatches") self.horizontalLayout.addWidget(self.labelMatches) self.toolButtonClose = QtWidgets.QToolButton(self.widgetSearch) self.toolButtonClose.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/pycode-icons/rc/close.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolButtonClose.setIcon(icon2) self.toolButtonClose.setObjectName("toolButtonClose") self.horizontalLayout.addWidget(self.toolButtonClose) self.verticalLayout_2.addWidget(self.widgetSearch) self.widgetReplace = QtWidgets.QWidget(self.frame) self.widgetReplace.setObjectName("widgetReplace") self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.widgetReplace) self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.labelReplace = QtWidgets.QLabel(self.widgetReplace) self.labelReplace.setMaximumSize(QtCore.QSize(18, 18)) self.labelReplace.setText("") self.labelReplace.setPixmap(QtGui.QPixmap(":/pycode-icons/rc/edit-find-replace.png")) self.labelReplace.setScaledContents(True) self.labelReplace.setObjectName("labelReplace") self.horizontalLayout_2.addWidget(self.labelReplace) self.lineEditReplace = PromptLineEdit(self.widgetReplace) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEditReplace.sizePolicy().hasHeightForWidth()) self.lineEditReplace.setSizePolicy(sizePolicy) self.lineEditReplace.setMinimumSize(QtCore.QSize(200, 0)) self.lineEditReplace.setObjectName("lineEditReplace") self.horizontalLayout_2.addWidget(self.lineEditReplace) self.toolButtonReplace = QtWidgets.QToolButton(self.widgetReplace) self.toolButtonReplace.setObjectName("toolButtonReplace") self.horizontalLayout_2.addWidget(self.toolButtonReplace) self.toolButtonReplaceAll = QtWidgets.QToolButton(self.widgetReplace) self.toolButtonReplaceAll.setObjectName("toolButtonReplaceAll") self.horizontalLayout_2.addWidget(self.toolButtonReplaceAll) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.lineEditReplace.raise_() self.toolButtonReplace.raise_() self.toolButtonReplaceAll.raise_() self.labelReplace.raise_() self.verticalLayout_2.addWidget(self.widgetReplace) self.verticalLayout.addWidget(self.frame) self.actionSearch = QtWidgets.QAction(SearchPanel) icon = QtGui.QIcon.fromTheme("edit-find") self.actionSearch.setIcon(icon) self.actionSearch.setIconVisibleInMenu(True) self.actionSearch.setObjectName("actionSearch") self.actionActionSearchAndReplace = QtWidgets.QAction(SearchPanel) icon = QtGui.QIcon.fromTheme("edit-find-replace") self.actionActionSearchAndReplace.setIcon(icon) self.actionActionSearchAndReplace.setIconVisibleInMenu(True) self.actionActionSearchAndReplace.setObjectName("actionActionSearchAndReplace") self.actionFindNext = QtWidgets.QAction(SearchPanel) icon = QtGui.QIcon.fromTheme("go-down") self.actionFindNext.setIcon(icon) self.actionFindNext.setIconVisibleInMenu(True) self.actionFindNext.setObjectName("actionFindNext") self.actionFindPrevious = QtWidgets.QAction(SearchPanel) icon = QtGui.QIcon.fromTheme("go-up") self.actionFindPrevious.setIcon(icon) self.actionFindPrevious.setIconVisibleInMenu(True) self.actionFindPrevious.setObjectName("actionFindPrevious") self.retranslateUi(SearchPanel) QtCore.QMetaObject.connectSlotsByName(SearchPanel) SearchPanel.setTabOrder(self.lineEditSearch, self.lineEditReplace) SearchPanel.setTabOrder(self.lineEditReplace, self.toolButtonPrevious) SearchPanel.setTabOrder(self.toolButtonPrevious, self.toolButtonNext) SearchPanel.setTabOrder(self.toolButtonNext, self.checkBoxCase) SearchPanel.setTabOrder(self.checkBoxCase, self.checkBoxWholeWords) SearchPanel.setTabOrder(self.checkBoxWholeWords, self.toolButtonReplace) SearchPanel.setTabOrder(self.toolButtonReplace, self.toolButtonReplaceAll) SearchPanel.setTabOrder(self.toolButtonReplaceAll, self.toolButtonClose)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(714, 665) self.verticalLayout = QtWidgets.QVBoxLayout(Form) self.verticalLayout.setObjectName("verticalLayout") self.header = QtWidgets.QLabel(Form) self.header.setStyleSheet("border-radius: 3px;\n" "background-color: rgb(161, 161, 161);\n" "padding: 10px;") self.header.setAlignment(QtCore.Qt.AlignCenter) self.header.setObjectName("header") self.verticalLayout.addWidget(self.header) self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setObjectName("groupBox") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_3.setObjectName("verticalLayout_3") self.cb_reopen = QtWidgets.QCheckBox(self.groupBox) self.cb_reopen.setChecked(True) self.cb_reopen.setObjectName("cb_reopen") self.verticalLayout_3.addWidget(self.cb_reopen) self.cb_confirm_exit = QtWidgets.QCheckBox(self.groupBox) self.cb_confirm_exit.setChecked(True) self.cb_confirm_exit.setObjectName("cb_confirm_exit") self.verticalLayout_3.addWidget(self.cb_confirm_exit) self.cb_restore_prev_win_state = QtWidgets.QCheckBox(self.groupBox) self.cb_restore_prev_win_state.setChecked(False) self.cb_restore_prev_win_state.setObjectName( "cb_restore_prev_win_state") self.verticalLayout_3.addWidget(self.cb_restore_prev_win_state) self.verticalLayout.addWidget(self.groupBox) self.groupBox_2 = QtWidgets.QGroupBox(Form) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_2) self.verticalLayout_4.setObjectName("verticalLayout_4") self.rb_open_scr_in_new = QtWidgets.QRadioButton(self.groupBox_2) self.rb_open_scr_in_new.setChecked(True) self.rb_open_scr_in_new.setObjectName("rb_open_scr_in_new") self.verticalLayout_4.addWidget(self.rb_open_scr_in_new) self.rb_open_scr_in_same = QtWidgets.QRadioButton(self.groupBox_2) self.rb_open_scr_in_same.setChecked(False) self.rb_open_scr_in_same.setObjectName("rb_open_scr_in_same") self.verticalLayout_4.addWidget(self.rb_open_scr_in_same) self.rb_open_scr_ask = QtWidgets.QRadioButton(self.groupBox_2) self.rb_open_scr_ask.setObjectName("rb_open_scr_ask") self.verticalLayout_4.addWidget(self.rb_open_scr_ask) self.verticalLayout.addWidget(self.groupBox_2) self.groupBox_3 = QtWidgets.QGroupBox(Form) self.groupBox_3.setEnabled(True) self.groupBox_3.setObjectName("groupBox_3") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.groupBox_3) self.verticalLayout_5.setObjectName("verticalLayout_5") self.rb_open_proj_in_new = QtWidgets.QRadioButton(self.groupBox_3) self.rb_open_proj_in_new.setChecked(True) self.rb_open_proj_in_new.setObjectName("rb_open_proj_in_new") self.verticalLayout_5.addWidget(self.rb_open_proj_in_new) self.rb_open_proj_in_same = QtWidgets.QRadioButton(self.groupBox_3) self.rb_open_proj_in_same.setObjectName("rb_open_proj_in_same") self.verticalLayout_5.addWidget(self.rb_open_proj_in_same) self.rb_open_proj_ask = QtWidgets.QRadioButton(self.groupBox_3) self.rb_open_proj_ask.setObjectName("rb_open_proj_ask") self.verticalLayout_5.addWidget(self.rb_open_proj_ask) self.verticalLayout.addWidget(self.groupBox_3) self.groupBox_4 = QtWidgets.QGroupBox(Form) self.groupBox_4.setObjectName("groupBox_4") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox_4) self.verticalLayout_6.setObjectName("verticalLayout_6") self.cb_save_before_run = QtWidgets.QCheckBox(self.groupBox_4) self.cb_save_before_run.setChecked(True) self.cb_save_before_run.setObjectName("cb_save_before_run") self.verticalLayout_6.addWidget(self.cb_save_before_run) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_6.addItem(spacerItem) self.verticalLayout.addWidget(self.groupBox_4) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(404, 185) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/interpreter-venv.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) self.gridLayout = QtWidgets.QGridLayout(Dialog) self.gridLayout.setObjectName("gridLayout") self.formLayout_2 = QtWidgets.QFormLayout() self.formLayout_2.setFieldGrowthPolicy( QtWidgets.QFormLayout.AllNonFixedFieldsGrow) self.formLayout_2.setObjectName("formLayout_2") self.label = QtWidgets.QLabel(Dialog) self.label.setObjectName("label") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) self.lineedit_name = QtWidgets.QLineEdit(Dialog) self.lineedit_name.setObjectName("lineedit_name") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.lineedit_name) self.label_2 = QtWidgets.QLabel(Dialog) self.label_2.setObjectName("label_2") self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_2) self.dir_picker = FilePicker(Dialog) self.dir_picker.setObjectName("dir_picker") self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.dir_picker) self.label_3 = QtWidgets.QLabel(Dialog) self.label_3.setObjectName("label_3") self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_3) self.combo_interpreters = QtWidgets.QComboBox(Dialog) self.combo_interpreters.setObjectName("combo_interpreters") self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.combo_interpreters) self.label_4 = QtWidgets.QLabel(Dialog) font = QtGui.QFont() font.setItalic(True) self.label_4.setFont(font) self.label_4.setObjectName("label_4") self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_4) self.label_full_path = QtWidgets.QLabel(Dialog) font = QtGui.QFont() font.setItalic(True) self.label_full_path.setFont(font) self.label_full_path.setObjectName("label_full_path") self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.label_full_path) self.gridLayout.addLayout(self.formLayout_2, 0, 0, 1, 1) self.buttonBox = QtWidgets.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.gridLayout.addWidget(self.buttonBox, 3, 0, 1, 1) self.check_box_site_packages = QtWidgets.QCheckBox(Dialog) self.check_box_site_packages.setObjectName("check_box_site_packages") self.gridLayout.addWidget(self.check_box_site_packages, 1, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 2, 0, 1, 1) self.retranslateUi(Dialog) self.buttonBox.accepted.connect(Dialog.accept) self.buttonBox.rejected.connect(Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(644, 619) icon = QtGui.QIcon.fromTheme("preferences-system") Dialog.setWindowIcon(icon) self.gridLayout_2 = QtWidgets.QGridLayout(Dialog) self.gridLayout_2.setContentsMargins(6, 6, 6, 6) self.gridLayout_2.setObjectName("gridLayout_2") self.widget = QtWidgets.QWidget(Dialog) self.widget.setStyleSheet("") self.widget.setObjectName("widget") self.widget_2 = QtWidgets.QGridLayout(self.widget) self.widget_2.setContentsMargins(0, 0, 0, 0) self.widget_2.setSpacing(0) self.widget_2.setObjectName("widget_2") self.tabWidget = QtWidgets.QTabWidget(self.widget) self.tabWidget.setStyleSheet("") self.tabWidget.setTabPosition(QtWidgets.QTabWidget.North) self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded) self.tabWidget.setUsesScrollButtons(True) self.tabWidget.setDocumentMode(False) self.tabWidget.setObjectName("tabWidget") self.tabEditor = QtWidgets.QWidget() self.tabEditor.setObjectName("tabEditor") self.verticalLayout = QtWidgets.QVBoxLayout(self.tabEditor) self.verticalLayout.setObjectName("verticalLayout") self.groupBox_3 = QtWidgets.QGroupBox(self.tabEditor) self.groupBox_3.setObjectName("groupBox_3") self.formLayout = QtWidgets.QFormLayout(self.groupBox_3) self.formLayout.setObjectName("formLayout") self.label_10 = QtWidgets.QLabel(self.groupBox_3) self.label_10.setObjectName("label_10") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_10) self.checkBoxViewLineNumber = QtWidgets.QCheckBox(self.groupBox_3) self.checkBoxViewLineNumber.setText("") self.checkBoxViewLineNumber.setChecked(True) self.checkBoxViewLineNumber.setObjectName("checkBoxViewLineNumber") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.checkBoxViewLineNumber) self.label_11 = QtWidgets.QLabel(self.groupBox_3) self.label_11.setObjectName("label_11") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_11) self.checkBoxHighlightCurrentLine = QtWidgets.QCheckBox( self.groupBox_3) self.checkBoxHighlightCurrentLine.setText("") self.checkBoxHighlightCurrentLine.setChecked(True) self.checkBoxHighlightCurrentLine.setObjectName( "checkBoxHighlightCurrentLine") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.checkBoxHighlightCurrentLine) self.label_12 = QtWidgets.QLabel(self.groupBox_3) self.label_12.setObjectName("label_12") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_12) self.checkBoxHighlightWhitespaces = QtWidgets.QCheckBox( self.groupBox_3) self.checkBoxHighlightWhitespaces.setText("") self.checkBoxHighlightWhitespaces.setChecked(True) self.checkBoxHighlightWhitespaces.setObjectName( "checkBoxHighlightWhitespaces") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.checkBoxHighlightWhitespaces) self.label_13 = QtWidgets.QLabel(self.groupBox_3) self.label_13.setObjectName("label_13") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_13) self.checkBoxShowErrors = QtWidgets.QCheckBox(self.groupBox_3) self.checkBoxShowErrors.setText("") self.checkBoxShowErrors.setObjectName("checkBoxShowErrors") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.checkBoxShowErrors) self.verticalLayout.addWidget(self.groupBox_3) self.groupBox_2 = QtWidgets.QGroupBox(self.tabEditor) self.groupBox_2.setObjectName("groupBox_2") self.formLayout_2 = QtWidgets.QFormLayout(self.groupBox_2) self.formLayout_2.setObjectName("formLayout_2") self.label = QtWidgets.QLabel(self.groupBox_2) self.label.setObjectName("label") self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label) self.label_14 = QtWidgets.QLabel(self.groupBox_2) self.label_14.setText("") self.label_14.setObjectName("label_14") self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_14) self.spinBoxEditorTabLen = QtWidgets.QSpinBox(self.groupBox_2) self.spinBoxEditorTabLen.setMaximum(99) self.spinBoxEditorTabLen.setProperty("value", 4) self.spinBoxEditorTabLen.setObjectName("spinBoxEditorTabLen") self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.spinBoxEditorTabLen) self.checkBoxEditorAutoIndent = QtWidgets.QCheckBox(self.groupBox_2) self.checkBoxEditorAutoIndent.setChecked(True) self.checkBoxEditorAutoIndent.setObjectName("checkBoxEditorAutoIndent") self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.checkBoxEditorAutoIndent) self.label_6 = QtWidgets.QLabel(self.groupBox_2) self.label_6.setText("") self.label_6.setObjectName("label_6") self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_6) self.checkBoxSmartBackspace = QtWidgets.QCheckBox(self.groupBox_2) self.checkBoxSmartBackspace.setObjectName("checkBoxSmartBackspace") self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.checkBoxSmartBackspace) self.verticalLayout.addWidget(self.groupBox_2) self.groupBox_4 = QtWidgets.QGroupBox(self.tabEditor) self.groupBox_4.setObjectName("groupBox_4") self.formLayout_4 = QtWidgets.QFormLayout(self.groupBox_4) self.formLayout_4.setObjectName("formLayout_4") self.label_2 = QtWidgets.QLabel(self.groupBox_4) self.label_2.setObjectName("label_2") self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_2) self.spinBoxEditorCCTriggerLen = QtWidgets.QSpinBox(self.groupBox_4) self.spinBoxEditorCCTriggerLen.setProperty("value", 1) self.spinBoxEditorCCTriggerLen.setObjectName( "spinBoxEditorCCTriggerLen") self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.spinBoxEditorCCTriggerLen) self.verticalLayout.addWidget(self.groupBox_4) self.groupBox = QtWidgets.QGroupBox(self.tabEditor) self.groupBox.setObjectName("groupBox") self.formLayout_7 = QtWidgets.QFormLayout(self.groupBox) self.formLayout_7.setObjectName("formLayout_7") self.label_7 = QtWidgets.QLabel(self.groupBox) self.label_7.setObjectName("label_7") self.formLayout_7.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_7) self.lineEditCommentIndicator = QtWidgets.QLineEdit(self.groupBox) font = QtGui.QFont() font.setFamily("Monospace") self.lineEditCommentIndicator.setFont(font) self.lineEditCommentIndicator.setObjectName("lineEditCommentIndicator") self.formLayout_7.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.lineEditCommentIndicator) self.verticalLayout.addWidget(self.groupBox) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/ide-icons/rc/cobol-mimetype.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tabWidget.addTab(self.tabEditor, icon, "") self.tabStyle = QtWidgets.QWidget() self.tabStyle.setObjectName("tabStyle") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tabStyle) self.verticalLayout_3.setObjectName("verticalLayout_3") self.groupBox_5 = QtWidgets.QGroupBox(self.tabStyle) self.groupBox_5.setObjectName("groupBox_5") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_5) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem1) self.radioButtonColorWhite = QtWidgets.QRadioButton(self.groupBox_5) self.radioButtonColorWhite.setChecked(True) self.radioButtonColorWhite.setObjectName("radioButtonColorWhite") self.horizontalLayout_3.addWidget(self.radioButtonColorWhite) self.radioButtonColorDark = QtWidgets.QRadioButton(self.groupBox_5) self.radioButtonColorDark.setObjectName("radioButtonColorDark") self.horizontalLayout_3.addWidget(self.radioButtonColorDark) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem2) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.layoutIconTheme = QtWidgets.QFormLayout() self.layoutIconTheme.setContentsMargins(-1, 0, -1, -1) self.layoutIconTheme.setObjectName("layoutIconTheme") self.lblIconTheme = QtWidgets.QLabel(self.groupBox_5) self.lblIconTheme.setObjectName("lblIconTheme") self.layoutIconTheme.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.lblIconTheme) self.comboBoxIconTheme = QtWidgets.QComboBox(self.groupBox_5) self.comboBoxIconTheme.setObjectName("comboBoxIconTheme") self.layoutIconTheme.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboBoxIconTheme) self.verticalLayout_2.addLayout(self.layoutIconTheme) self.verticalLayout_3.addWidget(self.groupBox_5) self.groupBox_6 = QtWidgets.QGroupBox(self.tabStyle) self.groupBox_6.setObjectName("groupBox_6") self.formLayout_3 = QtWidgets.QFormLayout(self.groupBox_6) self.formLayout_3.setObjectName("formLayout_3") self.label_3 = QtWidgets.QLabel(self.groupBox_6) self.label_3.setObjectName("label_3") self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_3) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.fontComboBox = QtWidgets.QFontComboBox(self.groupBox_6) self.fontComboBox.setFontFilters( QtWidgets.QFontComboBox.MonospacedFonts) font = QtGui.QFont() font.setFamily("DejaVu Sans Mono") font.setPointSize(10) self.fontComboBox.setCurrentFont(font) self.fontComboBox.setObjectName("fontComboBox") self.horizontalLayout_4.addWidget(self.fontComboBox) self.formLayout_3.setLayout(0, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_4) self.label_4 = QtWidgets.QLabel(self.groupBox_6) self.label_4.setObjectName("label_4") self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_4) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.spinBoxFontSize = QtWidgets.QSpinBox(self.groupBox_6) self.spinBoxFontSize.setProperty("value", 10) self.spinBoxFontSize.setObjectName("spinBoxFontSize") self.horizontalLayout_5.addWidget(self.spinBoxFontSize) self.formLayout_3.setLayout(1, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_5) self.verticalLayout_3.addWidget(self.groupBox_6) self.groupBox_7 = QtWidgets.QGroupBox(self.tabStyle) self.groupBox_7.setObjectName("groupBox_7") self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_7) self.gridLayout_4.setObjectName("gridLayout_4") self.listWidgetColorSchemes = QtWidgets.QListWidget(self.groupBox_7) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.listWidgetColorSchemes.sizePolicy().hasHeightForWidth()) self.listWidgetColorSchemes.setSizePolicy(sizePolicy) self.listWidgetColorSchemes.setObjectName("listWidgetColorSchemes") self.gridLayout_4.addWidget(self.listWidgetColorSchemes, 0, 0, 1, 1) self.plainTextEdit = CobolCodeEdit(self.groupBox_7) self.plainTextEdit.setObjectName("plainTextEdit") self.gridLayout_4.addWidget(self.plainTextEdit, 0, 1, 1, 1) self.verticalLayout_3.addWidget(self.groupBox_7) icon = QtGui.QIcon.fromTheme("applications-graphics") self.tabWidget.addTab(self.tabStyle, icon, "") self.tabCompiler = QtWidgets.QWidget() self.tabCompiler.setObjectName("tabCompiler") self.formLayout_6 = QtWidgets.QFormLayout(self.tabCompiler) self.formLayout_6.setFieldGrowthPolicy( QtWidgets.QFormLayout.AllNonFixedFieldsGrow) self.formLayout_6.setObjectName("formLayout_6") self.label_8 = QtWidgets.QLabel(self.tabCompiler) self.label_8.setObjectName("label_8") self.formLayout_6.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_8) self.label_9 = QtWidgets.QLabel(self.tabCompiler) self.label_9.setObjectName("label_9") self.formLayout_6.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_9) self.checkBoxFreeFormat = QtWidgets.QCheckBox(self.tabCompiler) self.checkBoxFreeFormat.setText("") self.checkBoxFreeFormat.setObjectName("checkBoxFreeFormat") self.formLayout_6.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.checkBoxFreeFormat) self.label_15 = QtWidgets.QLabel(self.tabCompiler) self.label_15.setObjectName("label_15") self.formLayout_6.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_15) self.verticalLayout_4 = QtWidgets.QVBoxLayout() self.verticalLayout_4.setObjectName("verticalLayout_4") self.cb_g = QtWidgets.QCheckBox(self.tabCompiler) self.cb_g.setObjectName("cb_g") self.verticalLayout_4.addWidget(self.cb_g) self.cb_ftrace = QtWidgets.QCheckBox(self.tabCompiler) self.cb_ftrace.setObjectName("cb_ftrace") self.verticalLayout_4.addWidget(self.cb_ftrace) self.cb_ftraceall = QtWidgets.QCheckBox(self.tabCompiler) self.cb_ftraceall.setObjectName("cb_ftraceall") self.verticalLayout_4.addWidget(self.cb_ftraceall) self.cb_debugging_line = QtWidgets.QCheckBox(self.tabCompiler) self.cb_debugging_line.setObjectName("cb_debugging_line") self.verticalLayout_4.addWidget(self.cb_debugging_line) self.cb_static = QtWidgets.QCheckBox(self.tabCompiler) self.cb_static.setObjectName("cb_static") self.verticalLayout_4.addWidget(self.cb_static) self.le_compiler_flags = QtWidgets.QLineEdit(self.tabCompiler) self.le_compiler_flags.setObjectName("le_compiler_flags") self.verticalLayout_4.addWidget(self.le_compiler_flags) self.formLayout_6.setLayout(3, QtWidgets.QFormLayout.FieldRole, self.verticalLayout_4) self.label_compiler_path = QtWidgets.QLabel(self.tabCompiler) self.label_compiler_path.setObjectName("label_compiler_path") self.formLayout_6.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_compiler_path) self.checkBoxCustomPath = QtWidgets.QCheckBox(self.tabCompiler) self.checkBoxCustomPath.setText("") self.checkBoxCustomPath.setObjectName("checkBoxCustomPath") self.formLayout_6.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.checkBoxCustomPath) self.lineEditCompilerPath = QtWidgets.QLineEdit(self.tabCompiler) self.lineEditCompilerPath.setObjectName("lineEditCompilerPath") self.formLayout_6.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.lineEditCompilerPath) self.comboBoxStandard = QtWidgets.QComboBox(self.tabCompiler) self.comboBoxStandard.setObjectName("comboBoxStandard") self.comboBoxStandard.addItem("") self.comboBoxStandard.addItem("") self.comboBoxStandard.addItem("") self.comboBoxStandard.addItem("") self.comboBoxStandard.addItem("") self.comboBoxStandard.addItem("") self.comboBoxStandard.addItem("") self.formLayout_6.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboBoxStandard) icon = QtGui.QIcon.fromTheme("exec") self.tabWidget.addTab(self.tabCompiler, icon, "") self.tabRun = QtWidgets.QWidget() self.tabRun.setObjectName("tabRun") self.formLayout_5 = QtWidgets.QFormLayout(self.tabRun) self.formLayout_5.setFieldGrowthPolicy( QtWidgets.QFormLayout.AllNonFixedFieldsGrow) self.formLayout_5.setObjectName("formLayout_5") self.label_5 = QtWidgets.QLabel(self.tabRun) self.label_5.setObjectName("label_5") self.formLayout_5.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_5) self.checkBoxRunExtTerm = QtWidgets.QCheckBox(self.tabRun) self.checkBoxRunExtTerm.setText("") self.checkBoxRunExtTerm.setObjectName("checkBoxRunExtTerm") self.formLayout_5.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.checkBoxRunExtTerm) self.lineEditRunTerm = QtWidgets.QLineEdit(self.tabRun) self.lineEditRunTerm.setObjectName("lineEditRunTerm") self.formLayout_5.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.lineEditRunTerm) icon = QtGui.QIcon.fromTheme("media-playback-start") self.tabWidget.addTab(self.tabRun, icon, "") self.widget_2.addWidget(self.tabWidget, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.widget, 0, 0, 1, 1) self.gridLayout_3 = QtWidgets.QGridLayout() self.gridLayout_3.setContentsMargins(9, 9, 9, 9) self.gridLayout_3.setObjectName("gridLayout_3") self.buttonBox = QtWidgets.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons( QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Reset | QtWidgets.QDialogButtonBox.RestoreDefaults) self.buttonBox.setObjectName("buttonBox") self.gridLayout_3.addWidget(self.buttonBox, 0, 0, 1, 1) self.gridLayout_2.addLayout(self.gridLayout_3, 2, 0, 1, 1) self.retranslateUi(Dialog) self.tabWidget.setCurrentIndex(0) self.buttonBox.accepted.connect(Dialog.accept) self.buttonBox.rejected.connect(Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(466, 569) self.verticalLayout = QtWidgets.QVBoxLayout(Form) self.verticalLayout.setObjectName("verticalLayout") self.header = QtWidgets.QLabel(Form) self.header.setStyleSheet("border-radius: 3px;\n" "background-color: rgb(161, 161, 161);\n" "padding: 10px;") self.header.setAlignment(QtCore.Qt.AlignCenter) self.header.setObjectName("header") self.verticalLayout.addWidget(self.header) self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setObjectName("groupBox") self.formLayout_2 = QtWidgets.QFormLayout(self.groupBox) self.formLayout_2.setFieldGrowthPolicy(QtWidgets.QFormLayout.AllNonFixedFieldsGrow) self.formLayout_2.setObjectName("formLayout_2") self.label_5 = QtWidgets.QLabel(self.groupBox) self.label_5.setObjectName("label_5") self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_5) self.cb_spaces_instead_of_tabs = QtWidgets.QCheckBox(self.groupBox) self.cb_spaces_instead_of_tabs.setText("") self.cb_spaces_instead_of_tabs.setObjectName("cb_spaces_instead_of_tabs") self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.cb_spaces_instead_of_tabs) self.label_8 = QtWidgets.QLabel(self.groupBox) self.label_8.setObjectName("label_8") self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_8) self.cb_center_on_scoll = QtWidgets.QCheckBox(self.groupBox) self.cb_center_on_scoll.setText("") self.cb_center_on_scoll.setObjectName("cb_center_on_scoll") self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.cb_center_on_scoll) self.label = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName("label") self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label) self.sb_tab_len = QtWidgets.QSpinBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.sb_tab_len.sizePolicy().hasHeightForWidth()) self.sb_tab_len.setSizePolicy(sizePolicy) self.sb_tab_len.setProperty("value", 4) self.sb_tab_len.setObjectName("sb_tab_len") self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.sb_tab_len) self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setObjectName("label_2") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_2) self.sb_margin_pos = QtWidgets.QSpinBox(self.groupBox) self.sb_margin_pos.setMaximum(200) self.sb_margin_pos.setProperty("value", 120) self.sb_margin_pos.setObjectName("sb_margin_pos") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.sb_margin_pos) self.label_4 = QtWidgets.QLabel(self.groupBox) self.label_4.setObjectName("label_4") self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_4) self.cb_caret_cope = QtWidgets.QCheckBox(self.groupBox) self.cb_caret_cope.setText("") self.cb_caret_cope.setObjectName("cb_caret_cope") self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.cb_caret_cope) self.verticalLayout.addWidget(self.groupBox) self.groupBox_3 = QtWidgets.QGroupBox(Form) self.groupBox_3.setObjectName("groupBox_3") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox_3) self.verticalLayout_3.setObjectName("verticalLayout_3") self.cb_convert_tabs_to_spaces = QtWidgets.QCheckBox(self.groupBox_3) self.cb_convert_tabs_to_spaces.setObjectName("cb_convert_tabs_to_spaces") self.verticalLayout_3.addWidget(self.cb_convert_tabs_to_spaces) self.cb_clean_trailing = QtWidgets.QCheckBox(self.groupBox_3) self.cb_clean_trailing.setObjectName("cb_clean_trailing") self.verticalLayout_3.addWidget(self.cb_clean_trailing) self.cb_restore_cursor = QtWidgets.QCheckBox(self.groupBox_3) self.cb_restore_cursor.setObjectName("cb_restore_cursor") self.verticalLayout_3.addWidget(self.cb_restore_cursor) self.cb_safe_save = QtWidgets.QCheckBox(self.groupBox_3) self.cb_safe_save.setObjectName("cb_safe_save") self.verticalLayout_3.addWidget(self.cb_safe_save) self.cb_fold_imports = QtWidgets.QCheckBox(self.groupBox_3) self.cb_fold_imports.setObjectName("cb_fold_imports") self.verticalLayout_3.addWidget(self.cb_fold_imports) self.cb_fold_doc = QtWidgets.QCheckBox(self.groupBox_3) self.cb_fold_doc.setObjectName("cb_fold_doc") self.verticalLayout_3.addWidget(self.cb_fold_doc) self.verticalLayout.addWidget(self.groupBox_3) self.groupBox_2 = QtWidgets.QGroupBox(Form) self.groupBox_2.setObjectName("groupBox_2") self.formLayout = QtWidgets.QFormLayout(self.groupBox_2) self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow) self.formLayout.setObjectName("formLayout") self.label_3 = QtWidgets.QLabel(self.groupBox_2) self.label_3.setObjectName("label_3") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_3) self.sb_cc_trigger_len = QtWidgets.QSpinBox(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.sb_cc_trigger_len.sizePolicy().hasHeightForWidth()) self.sb_cc_trigger_len.setSizePolicy(sizePolicy) self.sb_cc_trigger_len.setObjectName("sb_cc_trigger_len") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.sb_cc_trigger_len) self.label_6 = QtWidgets.QLabel(self.groupBox_2) self.label_6.setObjectName("label_6") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_6) self.cb_cc_tooltips = QtWidgets.QCheckBox(self.groupBox_2) self.cb_cc_tooltips.setText("") self.cb_cc_tooltips.setObjectName("cb_cc_tooltips") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.cb_cc_tooltips) self.label_7 = QtWidgets.QLabel(self.groupBox_2) self.label_7.setObjectName("label_7") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_7) self.cb_cc_case_sensitive = QtWidgets.QCheckBox(self.groupBox_2) self.cb_cc_case_sensitive.setText("") self.cb_cc_case_sensitive.setObjectName("cb_cc_case_sensitive") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.cb_cc_case_sensitive) self.verticalLayout.addWidget(self.groupBox_2) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)