Your question is a bit vague, and without reference to your real code, it is difficult to predict what you are doing wrong.
So, I will give you some pointers to read, and then speculate based on experience.
, , , , , . . . Twisted . , , , CLI, GTK+. , , , .
-, - , GTK +.
FAQ PyGTK , .
, . , GTK , . , , , , gobject.idle_add() , . .
, , , thread_enter()/threads_leave()