Home > other >  Problems setting up the python signals and slots, small white one, for a great god only give directi
Problems setting up the python signals and slots, small white one, for a great god only give directi

Time:09-25

I made up a small program, the establishment of signals and slots connections, wrote this code
Self. RetranslateUi (MainWindow)
The self. The s_1. Clicked. Connect (MainWindow. Change_text_1)
The self. The s_5. Clicked. Connect (MainWindow. Change_text_5)
Self. S_6. Clicked. Connect (MainWindow. Change_text_6)
Self. S_7. Clicked. Connect (MainWindow. Change_text_7)
Self. S_8. Clicked. Connect (MainWindow. Change_text_8)
Self. S_9. Clicked. Connect (MainWindow. Change_text_9)
Self. S_10. Clicked. Connect (MainWindow. Change_text_10)
Self. S_Flow. Clicked. Connect (MainWindow. Change_text_Flow)
Self. S_MS. Clicked. Connect (MainWindow. Change_text_MS)
Application error AttributeError: 'QMainWindow object has no attribute' click '
You can run this code is commented, have a great god know what's going on? Thank you very much!

CodePudding user response:

You are instantiated button, what is the assignment is wrong, the assignment into the self?
  • Related