Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8886743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:37:54+00:00 2026-06-14T21:37:54+00:00

I want to automate UI actions in my program: it can be show a

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:37:55+00:00Added an answer on June 14, 2026 at 9:37 pm

    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.sendEvent look like a good place to start:

    bool QCoreApplication.sendEvent (QObject receiver, QEvent event)

    Sends event event directly to receiver receiver, using the notify() function. Returns the value that was returned from the event handler.

    The event is not deleted when the event has been sent. The normal approach is to create the event on the stack, for example:

    QMouseEvent event(QEvent.MouseButtonPress, pos, 0, 0, 0);
    QApplication.sendEvent(mainWindow, &event);
    

    See also postEvent() and notify().

    Don’t ignore the see-alsos to postEvent and notify.

    More information will also be at Digia’s Qt docs for postEvent

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to Automate the build process of my company. We are Using.Net platform
I want to be able to automate this so I can go to one
I want to automate filling in data on a website using clojure. For this
I want to automate a job involving font lock mode using Emacs. I want
So I want to automate a manual task using shell scripting, but I'm a
I want to automate a Windows 2000+ server reboot process using Task Scheduler or
I want to automate some GUI tasks using Selenium. And integrate this task in
I want to automate a program called Spotify from C#, the best way (I
I want to automate posting of a number of HTML forms using Jsoup and
I want to automate the file name used when saving a spreadsheet using xlwt

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.