How to access Qt components loaded from file?
Juan Christian
juan0christian at gmail.com
Tue Nov 18 13:15:13 EST 2014
More information about the Python-list mailing list
Tue Nov 18 13:15:13 EST 2014
- Previous message (by thread): How to access Qt components loaded from file?
- Next message (by thread): How to access Qt components loaded from file?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > You can't have a slot like this: > > MainWindow.btn.clicked.connect(MainWindow.txtbox.setText(test())) > > because that's mean: "connect to the return of > MainWindow.txtbox.setText(test())" and it's not possible at this stage > of your program. > > Use instead a function: > > MainWindow.btn.clicked.connect(my_slot) # No parenthesis ! > > def my_slot(): > MainWindow.txtbox.setText(test()) > Thanks, it's working. What would be a "professional" approach if I want to constantly call a URL to get it's content and access this data within the GUI? I mean, when I run the program I'm locked in the app.exec_() continuous loop right? So I can't have a loop to get this data from the web, is there any special signal/slot regarding this? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20141118/713d72d5/attachment.html>
- Previous message (by thread): How to access Qt components loaded from file?
- Next message (by thread): How to access Qt components loaded from file?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list