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

  • Home
  • SEARCH
  • 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 4625068
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:13:11+00:00 2026-05-22T03:13:11+00:00

I am self teaching myself some python OOP, and I have created a simple

  • 0

I am self teaching myself some python OOP, and I have created a simple GUI that starts a number of scripts in the background using Popen. I need to determine at all times whether these scripts are active or not, which I was going to use a loop for.

But how can I have a loop running in the background at all times, without disrupting the user’s ability to use the GUI?

  • 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-22T03:13:11+00:00Added an answer on May 22, 2026 at 3:13 am

    You must run a thread in the background. A thread is simply a set of code that runs at the same time as anyother thread. A python program for example is one thread, only one action can occur at any one time, which is why you will see a lag with a infinite loop and a gui. If you create a new thread though the gui will run in one thread, and the loop in a separate thread. This is in a perfect world.

    Look further on google threading in python, but here are some links:
    http://www.prasannatech.net/2008/08/introduction-to-thread-programming.html
    http://www.wellho.net/solutions/python-python-threads-a-first-example.html
    http://www.devshed.com/c/a/Python/Basic-Threading-in-Python/

    Good luck

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

Sidebar

Related Questions

I'm teaching myself Python and I was translating some sample code into this class
I've taught myself Obj-C, and have been self-teaching Cocoa, but adding Core Data to
I'm teaching myself Python networking, and I recalled that back when I was teaching
I'm a Python(3.1.2)/emacs(23.2) newbie teaching myself tkinter using the pythonware tutorial found here .
I'm teaching myself Python and I see the following in Dive into Python section
I have a self-hosted WCF that runs under network_service beautifully on \Server1, but needs
Question is pretty self explanitory. I want to do a simple find and replace,
I have Laconica (self hosted twitter ) configured on my local intranet and would
I've been teaching myself WPF through Sells/Griffiths' Programming WPF, and I've found it a
I'm teaching my self Qt; in the same time I don't want to lose

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.