|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | + |
| 3 | +# Form implementation generated from reading ui file 'widgets/ui/options_menu_widget.ui' |
| 4 | +# |
| 5 | +# Created by: PyQt5 UI code generator 5.14.1 |
| 6 | +# |
| 7 | +# WARNING! All changes made in this file will be lost! |
| 8 | + |
| 9 | + |
| 10 | +from PyQt5 import QtCore, QtGui, QtWidgets |
| 11 | + |
| 12 | + |
| 13 | +class Ui_options_menu_widget(object): |
| 14 | + def setupUi(self, options_menu_widget): |
| 15 | + options_menu_widget.setObjectName("options_menu_widget") |
| 16 | + options_menu_widget.resize(703, 356) |
| 17 | + font = QtGui.QFont() |
| 18 | + font.setFamily("Open Sans") |
| 19 | + options_menu_widget.setFont(font) |
| 20 | + self.verticalLayout_4 = QtWidgets.QVBoxLayout(options_menu_widget) |
| 21 | + self.verticalLayout_4.setObjectName("verticalLayout_4") |
| 22 | + self.verticalLayout_3 = QtWidgets.QVBoxLayout() |
| 23 | + self.verticalLayout_3.setObjectName("verticalLayout_3") |
| 24 | + spacerItem = QtWidgets.QSpacerItem(547, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) |
| 25 | + self.verticalLayout_3.addItem(spacerItem) |
| 26 | + self.label = QtWidgets.QLabel(options_menu_widget) |
| 27 | + self.label.setMinimumSize(QtCore.QSize(0, 0)) |
| 28 | + font = QtGui.QFont() |
| 29 | + font.setFamily("Open Sans") |
| 30 | + font.setPointSize(18) |
| 31 | + self.label.setFont(font) |
| 32 | + self.label.setScaledContents(True) |
| 33 | + self.label.setAlignment(QtCore.Qt.AlignCenter) |
| 34 | + self.label.setWordWrap(False) |
| 35 | + self.label.setObjectName("label") |
| 36 | + self.verticalLayout_3.addWidget(self.label) |
| 37 | + self.label_2 = QtWidgets.QLabel(options_menu_widget) |
| 38 | + font = QtGui.QFont() |
| 39 | + font.setPointSize(11) |
| 40 | + self.label_2.setFont(font) |
| 41 | + self.label_2.setStyleSheet("color:rgba(0,0,0,99)") |
| 42 | + self.label_2.setAlignment(QtCore.Qt.AlignCenter) |
| 43 | + self.label_2.setObjectName("label_2") |
| 44 | + self.verticalLayout_3.addWidget(self.label_2) |
| 45 | + self.verticalLayout_4.addLayout(self.verticalLayout_3) |
| 46 | + self.horizontalLayout = QtWidgets.QHBoxLayout() |
| 47 | + self.horizontalLayout.setObjectName("horizontalLayout") |
| 48 | + spacerItem1 = QtWidgets.QSpacerItem(60, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) |
| 49 | + self.horizontalLayout.addItem(spacerItem1) |
| 50 | + self.verticalLayout = QtWidgets.QVBoxLayout() |
| 51 | + self.verticalLayout.setObjectName("verticalLayout") |
| 52 | + self.verticalLayout_2 = QtWidgets.QVBoxLayout() |
| 53 | + self.verticalLayout_2.setObjectName("verticalLayout_2") |
| 54 | + spacerItem2 = QtWidgets.QSpacerItem(547, 57, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) |
| 55 | + self.verticalLayout_2.addItem(spacerItem2) |
| 56 | + self.push_button_create_file = QtWidgets.QPushButton(options_menu_widget) |
| 57 | + self.push_button_create_file.setLayoutDirection(QtCore.Qt.LeftToRight) |
| 58 | + self.push_button_create_file.setAutoFillBackground(False) |
| 59 | + self.push_button_create_file.setStyleSheet("padding:5") |
| 60 | + icon = QtGui.QIcon.fromTheme("document-new") |
| 61 | + self.push_button_create_file.setIcon(icon) |
| 62 | + self.push_button_create_file.setIconSize(QtCore.QSize(30, 30)) |
| 63 | + self.push_button_create_file.setObjectName("push_button_create_file") |
| 64 | + self.verticalLayout_2.addWidget(self.push_button_create_file) |
| 65 | + spacerItem3 = QtWidgets.QSpacerItem(17, 17, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) |
| 66 | + self.verticalLayout_2.addItem(spacerItem3) |
| 67 | + self.push_button_open_file = QtWidgets.QPushButton(options_menu_widget) |
| 68 | + self.push_button_open_file.setLayoutDirection(QtCore.Qt.LeftToRight) |
| 69 | + self.push_button_open_file.setAutoFillBackground(False) |
| 70 | + self.push_button_open_file.setStyleSheet("padding:5") |
| 71 | + icon = QtGui.QIcon.fromTheme("document-open") |
| 72 | + self.push_button_open_file.setIcon(icon) |
| 73 | + self.push_button_open_file.setIconSize(QtCore.QSize(30, 30)) |
| 74 | + self.push_button_open_file.setFlat(False) |
| 75 | + self.push_button_open_file.setObjectName("push_button_open_file") |
| 76 | + self.verticalLayout_2.addWidget(self.push_button_open_file) |
| 77 | + self.verticalLayout.addLayout(self.verticalLayout_2) |
| 78 | + spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) |
| 79 | + self.verticalLayout.addItem(spacerItem4) |
| 80 | + self.horizontalLayout.addLayout(self.verticalLayout) |
| 81 | + spacerItem5 = QtWidgets.QSpacerItem(60, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) |
| 82 | + self.horizontalLayout.addItem(spacerItem5) |
| 83 | + self.verticalLayout_4.addLayout(self.horizontalLayout) |
| 84 | + |
| 85 | + self.retranslateUi(options_menu_widget) |
| 86 | + QtCore.QMetaObject.connectSlotsByName(options_menu_widget) |
| 87 | + |
| 88 | + def retranslateUi(self, options_menu_widget): |
| 89 | + _translate = QtCore.QCoreApplication.translate |
| 90 | + options_menu_widget.setWindowTitle(_translate("options_menu_widget", "Options Menu")) |
| 91 | + self.label.setText(_translate("options_menu_widget", "Track the time you spend working on your projects")) |
| 92 | + self.label_2.setText(_translate("options_menu_widget", "Start by creating a new file or opening a file to store your data")) |
| 93 | + self.push_button_create_file.setText(_translate("options_menu_widget", " Create new data file")) |
| 94 | + self.push_button_create_file.setShortcut(_translate("options_menu_widget", "Ctrl+N")) |
| 95 | + self.push_button_open_file.setText(_translate("options_menu_widget", " Open existing data file")) |
| 96 | + self.push_button_open_file.setShortcut(_translate("options_menu_widget", "Ctrl+O")) |
| 97 | + |
| 98 | + |
| 99 | +if __name__ == "__main__": |
| 100 | + import sys |
| 101 | + app = QtWidgets.QApplication(sys.argv) |
| 102 | + options_menu_widget = QtWidgets.QWidget() |
| 103 | + ui = Ui_options_menu_widget() |
| 104 | + ui.setupUi(options_menu_widget) |
| 105 | + options_menu_widget.show() |
| 106 | + sys.exit(app.exec_()) |
0 commit comments