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 443595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:11:12+00:00 2026-05-12T21:11:12+00:00

I have a couple of questions. I have an algorithm that will generate a

  • 0

I have a couple of questions.

I have an algorithm that will generate a couple of pictures in python that must be displayed on a form. I am using PyGt for this. My question is: where should I run my code? Right from the initializer? In that case from what I tested, the form won’t show up.

  • Should I set up a timer in the
    constructor that starts my algorithm
    half a second later?
  • Will running the algorithm freeze my
    form making it impossible to see the
    picture itself? I don’t mind that the
    buttons, checkboxes, etc freeze while
    it is computing, as long as the
    current picture is still visible.
  • Should I use something like c#’s
    OnFormLoad()? If yes, how can I set
    it? Through connect()?
  • How does threading work on python?
    I’ve heard, but I’m not too sure
    about it, that it was a pain to deal
    with. Is it? In c# it is as easy as
    writing 4 lines. I’d like to use it
    if possible, but if it is going to be
    hard to implement it I can live
    without it.

Thanks

  • 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-05-12T21:11:13+00:00Added an answer on May 12, 2026 at 9:11 pm

    You might want to check the Mandelbrot example.

    Basically the idea is to use a worker thread to do the heavy computations (I’d suggest a QThread to ease the communication to the main thread by using signals/slots), then once the work is done emit a signal with the computed data and have the main thread paint it. You can also render the image in the worker thread if you like.

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

Sidebar

Related Questions

I have couple of questions about AS3 variables handling by AVM/compiler/scope .1. This code
i have a couple questions about an idea i have to manage a form
I have a couple questions on playing videos in android. Currently I am using
I have a couple questions. This is an example of what i'm trying to
There have been a couple of questions very close to this topic, but none
I have couple of questions here. I am using the following to write a
I have couple of questions regarding boost licensing, Is it that all the boost
I know there have been a couple questions asked similar to this, but I
I have couple of questions that about mixing code: a complete project based on
I have a couple questions regarding using the entity manager in a JavaSE environment.

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.