Can you post the date.ui file, as well, and any other external files? Remember to wrap it in code tags to keep formatting.
Here is the converted ui file. There is no other external file.
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'date.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# 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
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1175, 823)
MainWindow.setStyleSheet("font: 14pt \"MS Shell Dlg 2\";")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.formLayoutWidget = QtWidgets.QWidget(self.centralwidget)
self.formLayoutWidget.setGeometry(QtCore.QRect(20, 160, 311, 121))
self.formLayoutWidget.setObjectName("formLayoutWidget")
self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget)
self.formLayout.setContentsMargins(0, 0, 0, 0)
self.formLayout.setObjectName("formLayout")
self.label = QtWidgets.QLabel(self.formLayoutWidget)
self.label.setObjectName("label")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label)
self.label_2 = QtWidgets.QLabel(self.formLayoutWidget)
self.label_2.setObjectName("label_2")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_2)
self.lineEdit = QtWidgets.QLineEdit(self.formLayoutWidget)
self.lineEdit.setObjectName("lineEdit")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.lineEdit)
self.lineEdit_2 = QtWidgets.QLineEdit(self.formLayoutWidget)
self.lineEdit_2.setObjectName("lineEdit_2")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.lineEdit_2)
self.pushButton = QtWidgets.QPushButton(self.formLayoutWidget)
self.pushButton.setObjectName("pushButton")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.pushButton)
self.le_date = QtWidgets.QLineEdit(self.centralwidget)
self.le_date.setEnabled(True)
self.le_date.setGeometry(QtCore.QRect(30, 60, 81, 41))
self.le_date.setObjectName("le_date")
self.le_time = QtWidgets.QLineEdit(self.centralwidget)
self.le_time.setEnabled(True)
self.le_time.setGeometry(QtCore.QRect(20, 110, 71, 41))
self.le_time.setObjectName("le_time")
self.lbl_sum = QtWidgets.QLabel(self.centralwidget)
self.lbl_sum.setGeometry(QtCore.QRect(100, 40, 55, 16))
self.lbl_sum.setObjectName("lbl_sum")
self.lbl_notice = QtWidgets.QLabel(self.centralwidget)
self.lbl_notice.setGeometry(QtCore.QRect(350, 130, 321, 161))
self.lbl_notice.setText("")
self.lbl_notice.setWordWrap(True)
self.lbl_notice.setObjectName("lbl_notice")
self.tableWidget = QtWidgets.QTableWidget(self.centralwidget)
self.tableWidget.setGeometry(QtCore.QRect(20, 300, 741, 311))
self.tableWidget.setObjectName("tableWidget")
self.tableWidget.setColumnCount(5)
self.tableWidget.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(2, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(3, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(4, item)
self.tableWidget.horizontalHeader().setCascadingSectionResizes(False)
self.tableWidget.horizontalHeader().setMinimumSectionSize(66)
self.tableWidget.horizontalHeader().setSortIndicatorShown(False)
self.tableWidget.horizontalHeader().setStretchLastSection(False)
self.tableWidget.verticalHeader().setVisible(False)
self.tableWidget.verticalHeader().setCascadingSectionResizes(False)
self.tableWidget.verticalHeader().setDefaultSectionSize(51)
self.tableWidget.verticalHeader().setHighlightSections(False)
self.tableWidget.verticalHeader().setMinimumSectionSize(50)
self.tableWidget.verticalHeader().setStretchLastSection(False)
self.formLayoutWidget_2 = QtWidgets.QWidget(self.centralwidget)
self.formLayoutWidget_2.setGeometry(QtCore.QRect(610, 40, 232, 121))
self.formLayoutWidget_2.setObjectName("formLayoutWidget_2")
self.formLayout_2 = QtWidgets.QFormLayout(self.formLayoutWidget_2)
self.formLayout_2.setContentsMargins(0, 0, 0, 0)
self.formLayout_2.setObjectName("formLayout_2")
self.label_3 = QtWidgets.QLabel(self.formLayoutWidget_2)
self.label_3.setObjectName("label_3")
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_3)
self.label_4 = QtWidgets.QLabel(self.formLayoutWidget_2)
self.label_4.setObjectName("label_4")
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_4)
self.itemName = QtWidgets.QLineEdit(self.formLayoutWidget_2)
self.itemName.setObjectName("itemName")
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.itemName)
self.itemPrice = QtWidgets.QLineEdit(self.formLayoutWidget_2)
self.itemPrice.setObjectName("itemPrice")
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.itemPrice)
self.pushButton_2 = QtWidgets.QPushButton(self.formLayoutWidget_2)
self.pushButton_2.setObjectName("pushButton_2")
self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.pushButton_2)
self.tableWidget_2 = QtWidgets.QTableWidget(self.centralwidget)
self.tableWidget_2.setGeometry(QtCore.QRect(25, 631, 731, 141))
self.tableWidget_2.setObjectName("tableWidget_2")
self.tableWidget_2.setColumnCount(5)
self.tableWidget_2.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_2.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_2.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_2.setHorizontalHeaderItem(2, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_2.setHorizontalHeaderItem(3, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_2.setHorizontalHeaderItem(4, item)
self.tableWidget_2.horizontalHeader().setHighlightSections(False)
self.tableWidget_2.verticalHeader().setVisible(False)
self.tableWidget_2.verticalHeader().setHighlightSections(False)
self.lbl_check = QtWidgets.QLabel(self.centralwidget)
self.lbl_check.setGeometry(QtCore.QRect(810, 320, 161, 21))
self.lbl_check.setObjectName("lbl_check")
self.lbl_notice_2 = QtWidgets.QLabel(self.centralwidget)
self.lbl_notice_2.setGeometry(QtCore.QRect(830, 360, 321, 61))
self.lbl_notice_2.setText("")
self.lbl_notice_2.setWordWrap(True)
self.lbl_notice_2.setObjectName("lbl_notice_2")
self.label_5 = QtWidgets.QLabel(self.centralwidget)
self.label_5.setGeometry(QtCore.QRect(860, 50, 251, 21))
self.label_5.setObjectName("label_5")
self.label_6 = QtWidgets.QLabel(self.centralwidget)
self.label_6.setGeometry(QtCore.QRect(860, 90, 251, 21))
self.label_6.setObjectName("label_6")
self.combo1 = QtWidgets.QComboBox(self.centralwidget)
self.combo1.setGeometry(QtCore.QRect(800, 360, 281, 31))
self.combo1.setObjectName("combo1")
self.label_7 = QtWidgets.QLabel(self.centralwidget)
self.label_7.setGeometry(QtCore.QRect(800, 410, 55, 16))
self.label_7.setObjectName("label_7")
self.label_8 = QtWidgets.QLabel(self.centralwidget)
self.label_8.setGeometry(QtCore.QRect(800, 440, 55, 16))
self.label_8.setObjectName("label_8")
self.label_9 = QtWidgets.QLabel(self.centralwidget)
self.label_9.setGeometry(QtCore.QRect(800, 470, 55, 16))
self.label_9.setObjectName("label_9")
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.label.setText(_translate("MainWindow", "TextLabel"))
self.label_2.setText(_translate("MainWindow", "TextLabel"))
self.pushButton.setText(_translate("MainWindow", "PushButton"))
self.lbl_sum.setText(_translate("MainWindow", "TextLabel"))
item = self.tableWidget.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", "ID"))
item = self.tableWidget.horizontalHeaderItem(1)
item.setText(_translate("MainWindow", "Cost Price"))
item = self.tableWidget.horizontalHeaderItem(2)
item.setText(_translate("MainWindow", "Selling Price"))
item = self.tableWidget.horizontalHeaderItem(3)
item.setText(_translate("MainWindow", "Purchasing Date"))
item = self.tableWidget.horizontalHeaderItem(4)
item.setText(_translate("MainWindow", "Record Time"))
self.label_3.setText(_translate("MainWindow", "TextLabel"))
self.label_4.setText(_translate("MainWindow", "TextLabel"))
self.pushButton_2.setText(_translate("MainWindow", "PushButton"))
item = self.tableWidget_2.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", "Ref. No:"))
item = self.tableWidget_2.horizontalHeaderItem(1)
item.setText(_translate("MainWindow", "Item Name"))
item = self.tableWidget_2.horizontalHeaderItem(2)
item.setText(_translate("MainWindow", "Item Price"))
item = self.tableWidget_2.horizontalHeaderItem(3)
item.setText(_translate("MainWindow", "Purchase Date"))
item = self.tableWidget_2.horizontalHeaderItem(4)
item.setText(_translate("MainWindow", "Recod Time"))
self.lbl_check.setText(_translate("MainWindow", "TextLabel"))
self.label_5.setText(_translate("MainWindow", "TextLabel"))
self.label_6.setText(_translate("MainWindow", "TextLabel"))
self.label_7.setText(_translate("MainWindow", "TextLabel"))
self.label_8.setText(_translate("MainWindow", "TextLabel"))
self.label_9.setText(_translate("MainWindow", "TextLabel"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())