I ran this on command prompt to turn the file from QT designer file to a .py file. All the buttons have worked, but none of the text shows up (i.e. labels for the radio buttons / words on the buttons / general labels):
C:\Users\Finn>pyuic5 -x \users\finn\desktop\Doc_Production\CBCA_Incorporation_Stacked.ui -o \users\finn\desktop\Doc_Production\CBCA_Incorporation_Stacked.py
This is what it is producing:
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(905, 867)
MainWindow.setStyleSheet("background-color rgb(170, 255, 255)")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.stackedWidget = QtWidgets.QStackedWidget(self.centralwidget)
self.stackedWidget.setGeometry(QtCore.QRect(10, 20, 441, 691))
self.stackedWidget.setStyleSheet("stackedWidget {color: rgb(170, 255, 255)}")
self.stackedWidget.setObjectName("stackedWidget")
self.page = QtWidgets.QWidget()
self.page.setObjectName("page")
self.layoutWidget = QtWidgets.QWidget(self.page)
self.layoutWidget.setGeometry(QtCore.QRect(20, 70, 341, 101))
self.layoutWidget.setObjectName("layoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
etc.
When I run it each of the self lines gets an "IndentationError: unexpected indent"
This is the resulting program I'm getting
Does anyone know how to fix this? Or why the text isn't working? Is it an issue with what I put in the command prompt? Or is there something I need to import?
Thanks!