Nov-28-2018, 06:48 AM
Hey Larz60+
I will try put some code in, it is about 2000 lines of code spread over 4 worksheets. So I am just going to drop what looks suspicious.
MainCode:
Program.Textbox.setText()
Is there a way to maintain this feature?
I will try put some code in, it is about 2000 lines of code spread over 4 worksheets. So I am just going to drop what looks suspicious.
MainCode:
from PyQt5.QtGui import QColor from PyQt5.QtWidgets import QApplication, QFileDialog, QDialog, QMessageBox from interfaceUI import Ui_MainWindow class interface(Ui_MainWindow): def __init__(self, Application): Ui_MainWindow.__init__(self) self.setupUi(Application) #I believe this may be where all the issues arise from app = 0 app = QApplication(sys.argv) Application = QDialog() Program = interface(Application) Application.show() app.exec_()GUI generated from pyqt5
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1041, 680) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.start_btn = QtWidgets.QPushButton(self.centralwidget self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translateSomething that I still want to be able to accomplish is the ability to call text boxes and other objects from outside of their "self" name. I have been doing this with something along these line:
Program.Textbox.setText()
Is there a way to maintain this feature?