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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T01:58:26+00:00 2026-05-21T01:58:26+00:00

I am in PyGtk on Windows. My program converts PDF’s to images using GraphicsMagick

  • 0

I am in PyGtk on Windows. My program converts PDF’s to images using GraphicsMagick then displays the image. The conversion can be very long on multi-page PDF’s so the program has to wait for the command line to return and I need to get around this and allow the user to use the GUI while the image is created. My attempts to use gtk’s threading and python’s threading have not worked so far, is there a way to easily call the GraphicsMagick conversion as a background process and returnot wait for it to return?

I am using subprocess(command) to perform the conversion from the command line.

  • 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-21T01:58:26+00:00Added an answer on May 21, 2026 at 1:58 am

    Just use subprocess.Popen:

    import subprocess
    subprocess.Popen(["command", "arg1", "arg2"])
    

    For more information see:
    http://docs.python.org/library/subprocess.html#using-the-subprocess-module

    If you really need to use threads use gtk.gdk.threads_init() before gtk.main()

    http://library.gnome.org/devel/pygtk/stable/gdk-functions.html#function-gdk–threads-init

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

Sidebar

Related Questions

I'm using Python 2.6 and PyGTK 2.22.6 from the all-in-one installer on Windows XP,
Can we somehow customize how PyGtk GUI windows look, by for example - changing
I am writing a timer program in Python using PyGTK. It is precise to
I'm currently writing a screen capture app for Windows and Linux using PyGTK, and
Is it possible to set the position of an image using pygtk? import pygtk
I'm working on a PyGTK/glade application that currently has 16 windows/dialogs and is about
Consider this Python program which uses PyGtk and Hippo Canvas to display a clickable
I've been writing writing a small pygtk application using glade to put together the
I'm using Python and PyGTK. I'm interested in running a certain function, which gets
How do I paste HTML data from the X clipboard using PyGTK/GTK+? I would

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.