QT designer и python
Unsolved
Qt for Python
-
@VOLFRAMHERO said in QT designer и python:
А что изменилось?
if __name__ == "__main__":\ app = QtWidgets.QApplication(sys.argv) #Следующий код отвечает за открытие интерфейса Form = QtWidgets.QWidget() ui = Ui_Form() ui.setupUi(Form) Form.show() #Выход из приложения sys.exit(app.exec_())
-
This post is deleted!
-
@VOLFRAMHERO Why don't you connect buttons ssignals to slots inside Ui_Form?
Currently you connect inside shift() which is not called anywhere - how should it work? -
@VOLFRAMHERO I don't understand what the problem is? It is as simple as:
self.pushButton.clicked.connect(self.shift)
And move shift() to your Ui_Form
-
-
@VOLFRAMHERO Did you add
self.pushButton.clicked.connect(self.shift)
to setupUi? Also, you should remove that line from shift().