[chimera-dev] thread-communication

Lars Kunert lkunert at mpi-sb.mpg.de
Fri Oct 10 02:34:49 PDT 2003


Hi!

When my plugin talks with chimera, it does so from a foreign thread.
I am currently using an approach I have "stolen" from the 
DelphiViewer-plugin

which fetches the

see __init__.py>>    self.parent = chimera.tkgui.app

gui-thread
and places a
callback

see __init__.py>>                          self.parent.after(100, 
self.CheckProcess)

 I have added a queue in between, so my extension feeds the queue, which 
the gui-thread is frequently asked to process (and empty)


What I actually want to know is if there some kind of functionality like 
this already in chimera:

The programmer of the DelphiViewer suspected something like that in the 
trigger-stuff

__init__.py:                    # modify this to use the 
chimera.triggerSet?

but I can not find any threading stuff there, just plain 
single-thread-callbacks......or am I wrong


Thank for your help

Lars


More information about the Chimera-dev mailing list