Python+GTK thread question (program freezing)...

Discussion in 'Python' started by Christian Seberino, Jul 31, 2003.

  1. We have a program that uses threads. If we DON'T run the GTK+ GUI
    code then multitasking is fine and every thread gets a little CPU time.

    If we run a GTK+ GUI in the main parent process/thread then program
    freezes.

    The PyGTK commands called gtk.threads.thread_enter() and
    gtk.gdk.threads_leave() are used to avoid conflicts caused by
    two threads writing to GUI at the same time. The disallow/allow
    other threads to write to GUI as needed.

    It would seem that the problem are with these two commands but
    the guys cannot seem to find the problem. As you know, threads
    are not the easiest things to debug.

    I don't want to think Python threads are unstable.
    Are they??

    Any ideas at all how to begin to solve this?

    Chris
    Christian Seberino, Jul 31, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. awalter1
    Replies:
    2
    Views:
    414
    awalter1
    Jan 31, 2007
  2. Replies:
    2
    Views:
    506
  3. Dmitry Teslenko
    Replies:
    0
    Views:
    613
    Dmitry Teslenko
    Jan 3, 2010
  4. Gergely Kontra
    Replies:
    2
    Views:
    239
    Joao Pedrosa
    Jun 18, 2004
  5. Alex Shulgin
    Replies:
    1
    Views:
    168
    thefed
    Nov 21, 2007
Loading...

Share This Page