I want to automate UI actions in my program: it can be show a menu, open another form, etc.
I’m using .py files and .ui files in my python app.
How can i do this?
I want to automate UI actions in my program: it can be show a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Almost all GUI frameworks have a notion of an event, which are typically generated by user actions (button clicking, window dragging, etc.) and send to your handlers.
But event can usually also be sent directly to the event loop.
In your case, I’m assuming you’re using PyQt and Qt toolkit from Digia.
The PyQt docs for
QCoreApplication.sendEventlook like a good place to start:Don’t ignore the see-alsos to
postEventandnotify.More information will also be at Digia’s Qt docs for postEvent