Registered Member
|
Hi
Please see the following code. -----------------------------------------------------------------
----------------------------------------------------------------- i want to When I click on a button, the program will exit. But when I run the program, the clicked event of button is executed automatically and it is Exit Program. and No error does show Please help me Thank you |
Global Moderator
|
Don't use the C++ connect syntax -- it sucks for python. Instead, use:
self.button.clicked.connect(self.aaa) Besides, the actual problem in your code is that you try to connect to self.aaa() which calls the function. You should connect to the function object itself, which is self.aaa. Greetings
I'm working on the KDevelop IDE.
|
Registered Member
|
Hi scummos
You true said and true worked Thank you very much Good luck |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]