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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:27:42+00:00 2026-05-16T07:27:42+00:00

I have a wxpython app designed using XRC which has a multiline textctrl inside

  • 0

I have a wxpython app designed using XRC which has a multiline textctrl inside nested boxlayouts.

I’m adding some text(retrieved from the web) to the text control using SetValue(), inside the longtask method from a separate thread using the following code

thread.start_new_thread(self.longtask, ())

The app runs fine the first couple of tries(text gets added correctly) but after around 3 or 4 times it exits with a segmentation fault and following warning.

(python:3341): Gtk-WARNING **: unable to find signal handler for object(GtkEntry:0x9ed89e0) with func(0x837600) and data(0x9e19c08)

Does anyone know why this is happening and how I can fix it? I’m running Python2.6 on Ubuntu 10.2.

Thanks in advance.

  • 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-16T07:27:43+00:00Added an answer on May 16, 2026 at 7:27 am

    Directly calling methods of GUI elements from a different thread is dangerous. Without getting too much into your code, I’d recommend you to consider a robust multi-threaded design. For example, you can use Queue objects to pass data between threads. Alternatively, use wx’s events.

    Here’s a nice article on this issue. And a related SO discussion. Google for more (‘wxpython thread’)

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

Sidebar

Related Questions

I have a wxPython app which has many worker threads, idle event cycles, and
In my wxPython app I have an EVT_IDLE handler that calls some function that
I've been creating an app using wxPython. I'd like to display some data using
I have wxPython app which is running on MS Windows and I'd like it
I have a wxpython script, which creates a wx.App and a frame, hides it
I am building a small app using wxPython.I have created a menu bar ,
I have a wxPython which works perfectly on window xp theme but on switching
I have a wxPython application I'm bundling into an exe using py2exe. I've defined
I have recently been using WxPython to create a GUI Network simulator like Cisco
I have a application written in wxPython which I want to make multilingual. Our

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.