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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:36:04+00:00 2026-06-16T11:36:04+00:00

I have some simple wxpython GUI, and when I click a button click, I

  • 0

I have some simple wxpython GUI, and when I click a button click, I want to run some io task in a another thread(in order not to block the GUI) and update the GUI accordingly while the io thread is running (for example updating a label to:”[io task percentage completed]%”) from the io thread.

However sometimes this works, and sometimes an exception is thrown:

The program 'python2.7' received an X Window System error.
This probably reflects a bug in the program.
The error was 'RenderBadPicture (invalid Picture parameter)'.
  (Details: serial 14127 error_code 163 request_code 149 minor_code 7)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Running the program with –sync command yields the following error :

[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called

I have read that it is not allowed to update the GUI thread from another thread than the one which created the GUI, but if this is the case, how to accomplish this simple task? updating the GUI from another thread.

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-06-16T11:36:05+00:00Added an answer on June 16, 2026 at 11:36 am

    There are already tons of threads on this topic here, and it’s well covered on the wxpython wiki. Look up wx.CallAfter.

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

Sidebar

Related Questions

Have some simple jquery that Im trying to execute on a button click. For
I have some simple javascript that I'd like to run when a button is
I have some simple code that will run to check Internet connectivity and I'm
I have some simple Perl code: #!/usr/bin/perl use strict; # not in the OP,
I have some simple code in which the main Thread is creating a new
I have some simple OpenGL ES code in C++ that I've run on a
I have some simple code as a repro: var taskTest = Task.Factory.StartNew(() => {
i have some simple Export/Import Scenario that i can't figur out why this not
I have some simple code below: <script> $(function() { $(h1).click(function(){ console.log((this)); $(p).toggle(); }); });
I have some simple trying to write from one file to another. $content=file_get_contents(C:\Users\Borut\Desktop\sql_PW1\mm_ads (1).sql);

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.