190 lines
9.4 KiB
Python
190 lines
9.4 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
# Form implementation generated from reading ui file 'test2.ui.py'
|
||
|
#
|
||
|
# Created by: PyQt5 UI code generator 5.15.11
|
||
|
#
|
||
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
||
|
# run again. Do not edit this file unless you know what you are doing.
|
||
|
|
||
|
|
||
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
||
|
import signal
|
||
|
|
||
|
|
||
|
class Ui_MainWindow(object):
|
||
|
def setupUi(self, MainWindow):
|
||
|
MainWindow.setObjectName("MainWindow")
|
||
|
MainWindow.resize(1374, 725)
|
||
|
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
||
|
self.centralwidget.setEnabled(True)
|
||
|
self.centralwidget.setObjectName("centralwidget")
|
||
|
self.AuftragsdetailsTable = QtWidgets.QTableWidget(self.centralwidget)
|
||
|
self.AuftragsdetailsTable.setGeometry(QtCore.QRect(30, 200, 591, 371))
|
||
|
self.AuftragsdetailsTable.setAutoFillBackground(False)
|
||
|
self.AuftragsdetailsTable.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
|
||
|
self.AuftragsdetailsTable.setObjectName("AuftragsdetailsTable")
|
||
|
self.AuftragsdetailsTable.setColumnCount(5)
|
||
|
self.AuftragsdetailsTable.setRowCount(1)
|
||
|
item = QtWidgets.QTableWidgetItem()
|
||
|
self.AuftragsdetailsTable.setVerticalHeaderItem(0, item)
|
||
|
item = QtWidgets.QTableWidgetItem()
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(8)
|
||
|
item.setFont(font)
|
||
|
self.AuftragsdetailsTable.setHorizontalHeaderItem(0, item)
|
||
|
item = QtWidgets.QTableWidgetItem()
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(8)
|
||
|
item.setFont(font)
|
||
|
self.AuftragsdetailsTable.setHorizontalHeaderItem(1, item)
|
||
|
item = QtWidgets.QTableWidgetItem()
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(8)
|
||
|
item.setFont(font)
|
||
|
self.AuftragsdetailsTable.setHorizontalHeaderItem(2, item)
|
||
|
item = QtWidgets.QTableWidgetItem()
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(8)
|
||
|
item.setFont(font)
|
||
|
self.AuftragsdetailsTable.setHorizontalHeaderItem(3, item)
|
||
|
item = QtWidgets.QTableWidgetItem()
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(8)
|
||
|
item.setFont(font)
|
||
|
self.AuftragsdetailsTable.setHorizontalHeaderItem(4, item)
|
||
|
item = QtWidgets.QTableWidgetItem()
|
||
|
self.AuftragsdetailsTable.setItem(0, 0, item)
|
||
|
self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
|
||
|
self.groupBox.setGeometry(QtCore.QRect(9, 9, 611, 151))
|
||
|
self.groupBox.setObjectName("groupBox")
|
||
|
self.frame = QtWidgets.QFrame(self.groupBox)
|
||
|
self.frame.setGeometry(QtCore.QRect(170, 30, 221, 71))
|
||
|
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
||
|
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
|
||
|
self.frame.setObjectName("frame")
|
||
|
self.bauteiltypTextbox = QtWidgets.QTextEdit(self.frame)
|
||
|
self.bauteiltypTextbox.setGeometry(QtCore.QRect(31, 34, 269, 76))
|
||
|
self.bauteiltypTextbox.setObjectName("bauteiltypTextbox")
|
||
|
self.label_3 = QtWidgets.QLabel(self.frame)
|
||
|
self.label_3.setGeometry(QtCore.QRect(31, 11, 73, 17))
|
||
|
self.label_3.setObjectName("label_3")
|
||
|
self.widget = QtWidgets.QWidget(self.groupBox)
|
||
|
self.widget.setGeometry(QtCore.QRect(420, 40, 171, 71))
|
||
|
self.widget.setObjectName("widget")
|
||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widget)
|
||
|
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||
|
self.label_4 = QtWidgets.QLabel(self.widget)
|
||
|
self.label_4.setObjectName("label_4")
|
||
|
self.verticalLayout_2.addWidget(self.label_4)
|
||
|
self.textEdit_3 = QtWidgets.QTextEdit(self.widget)
|
||
|
self.textEdit_3.setObjectName("textEdit_3")
|
||
|
self.verticalLayout_2.addWidget(self.textEdit_3)
|
||
|
self.widget1 = QtWidgets.QWidget(self.groupBox)
|
||
|
self.widget1.setGeometry(QtCore.QRect(20, 40, 161, 81))
|
||
|
self.widget1.setObjectName("widget1")
|
||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.widget1)
|
||
|
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
|
||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||
|
self.bauteilTypBtn = QtWidgets.QPushButton(self.widget1)
|
||
|
self.bauteilTypBtn.setCheckable(False)
|
||
|
self.bauteilTypBtn.setAutoDefault(False)
|
||
|
self.bauteilTypBtn.setDefault(False)
|
||
|
self.bauteilTypBtn.setFlat(False)
|
||
|
self.bauteilTypBtn.setObjectName("bauteilTypBtn")
|
||
|
self.verticalLayout_3.addWidget(self.bauteilTypBtn)
|
||
|
self.checkBox = QtWidgets.QCheckBox(self.widget1)
|
||
|
self.checkBox.setChecked(False)
|
||
|
self.checkBox.setObjectName("checkBox")
|
||
|
self.verticalLayout_3.addWidget(self.checkBox)
|
||
|
self.widget2 = QtWidgets.QWidget(self.centralwidget)
|
||
|
self.widget2.setGeometry(QtCore.QRect(640, 20, 351, 571))
|
||
|
self.widget2.setObjectName("widget2")
|
||
|
self.verticalLayout = QtWidgets.QVBoxLayout(self.widget2)
|
||
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||
|
self.groupBox_2 = QtWidgets.QGroupBox(self.widget2)
|
||
|
self.groupBox_2.setObjectName("groupBox_2")
|
||
|
self.widget3 = QtWidgets.QWidget(self.groupBox_2)
|
||
|
self.widget3.setGeometry(QtCore.QRect(10, 32, 331, 481))
|
||
|
self.widget3.setObjectName("widget3")
|
||
|
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.widget3)
|
||
|
self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
|
||
|
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||
|
self.label = QtWidgets.QLabel(self.widget3)
|
||
|
self.label.setObjectName("label")
|
||
|
self.verticalLayout_4.addWidget(self.label)
|
||
|
self.btn1 = QtWidgets.QPushButton(self.widget3)
|
||
|
self.btn1.setObjectName("btn1")
|
||
|
self.verticalLayout_4.addWidget(self.btn1)
|
||
|
self.graphicsView = QtWidgets.QGraphicsView(self.widget3)
|
||
|
self.graphicsView.setObjectName("graphicsView")
|
||
|
self.verticalLayout_4.addWidget(self.graphicsView)
|
||
|
self.verticalLayout.addWidget(self.groupBox_2)
|
||
|
MainWindow.setCentralWidget(self.centralwidget)
|
||
|
self.statusbar = QtWidgets.QStatusBar(MainWindow)
|
||
|
self.statusbar.setObjectName("statusbar")
|
||
|
MainWindow.setStatusBar(self.statusbar)
|
||
|
|
||
|
self.retranslateUi(MainWindow)
|
||
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||
|
|
||
|
def retranslateUi(self, MainWindow):
|
||
|
_translate = QtCore.QCoreApplication.translate
|
||
|
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
|
||
|
item = self.AuftragsdetailsTable.verticalHeaderItem(0)
|
||
|
item.setText(_translate("MainWindow", "T1"))
|
||
|
item = self.AuftragsdetailsTable.horizontalHeaderItem(0)
|
||
|
item.setText(_translate("MainWindow", "Pos.-Nr"))
|
||
|
item = self.AuftragsdetailsTable.horizontalHeaderItem(1)
|
||
|
item.setText(_translate("MainWindow", "Matnr mit hoechster Version"))
|
||
|
item = self.AuftragsdetailsTable.horizontalHeaderItem(2)
|
||
|
item.setText(_translate("MainWindow", "Bezeichnung + Werkstoff"))
|
||
|
item = self.AuftragsdetailsTable.horizontalHeaderItem(3)
|
||
|
item.setText(_translate("MainWindow", "Menge"))
|
||
|
item = self.AuftragsdetailsTable.horizontalHeaderItem(4)
|
||
|
item.setText(_translate("MainWindow", "Lgort"))
|
||
|
__sortingEnabled = self.AuftragsdetailsTable.isSortingEnabled()
|
||
|
self.AuftragsdetailsTable.setSortingEnabled(False)
|
||
|
item = self.AuftragsdetailsTable.item(0, 0)
|
||
|
item.setText(_translate("MainWindow", "I1"))
|
||
|
self.AuftragsdetailsTable.setSortingEnabled(__sortingEnabled)
|
||
|
self.groupBox.setTitle(_translate("MainWindow", "Bauteile"))
|
||
|
self.bauteiltypTextbox.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
|
||
|
"p, li { white-space: pre-wrap; }\n"
|
||
|
"hr { height: 1px; border-width: 0; }\n"
|
||
|
"li.unchecked::marker { content: \"\\2610\"; }\n"
|
||
|
"li.checked::marker { content: \"\\2612\"; }\n"
|
||
|
"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
|
||
|
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:11pt;\"><br /></p></body></html>"))
|
||
|
self.label_3.setText(_translate("MainWindow", "Bezeichnung"))
|
||
|
self.label_4.setText(_translate("MainWindow", "Pos.-Nr:"))
|
||
|
self.bauteilTypBtn.setText(_translate("MainWindow", "Bauteiltype erkennen"))
|
||
|
self.checkBox.setText(_translate("MainWindow", "Bauteiltype locked"))
|
||
|
self.groupBox_2.setTitle(_translate("MainWindow", "Auftrag"))
|
||
|
self.label.setText(_translate("MainWindow", "Auftragsnummer:"))
|
||
|
self.btn1.setText(_translate("MainWindow", "load Auftrag"))
|
||
|
|
||
|
def signal_handler(sig, frame):
|
||
|
QtWidgets.QApplication.quit()
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
import sys
|
||
|
app = QtWidgets.QApplication(sys.argv)
|
||
|
|
||
|
# Handle Ctrl+C (SIGINT) to close the application
|
||
|
signal.signal(signal.SIGINT, signal_handler)
|
||
|
|
||
|
# Create a timer that runs in the background to process signals
|
||
|
timer = QtCore.QTimer()
|
||
|
timer.start(100) # Timer set to trigger every 100 ms
|
||
|
timer.timeout.connect(lambda: None) # No-op to keep the event loop running
|
||
|
|
||
|
MainWindow = QtWidgets.QMainWindow()
|
||
|
ui = Ui_MainWindow()
|
||
|
ui.setupUi(MainWindow)
|
||
|
MainWindow.show()
|
||
|
sys.exit(app.exec_())
|