Callable IDL from TCL [message #32976] |
Sat, 23 November 2002 06:55  |
mperrin+news
Messages: 81 Registered: May 2001
|
Member |
|
|
I have an application written in TCL/TK which calls IDL for plotting
purposes. Currently it only displays a static image in a window and
draws a few line plots. I would like to add a feature to this where,
when the user mouses over the image, the current x & y positions and
pixel value are displayed on screen, preferably in a little widget
window. I wrote an IDL widget application which implements displaying
my image along with a statusbar containing the pixel coords and value.
However, when I call this from TCL, the TCL application locks up
and won't respond to any TCL events until the IDL widget is closed.
I've got a sinking feeling this is due to the fact that neither of these
applications are multithreaded, and that there's no easy way around it.
I would love for someone to tell me I'm wrong...
- Marshall
|
|
|
Re: Callable IDL from TCL [message #33047 is a reply to message #32976] |
Mon, 25 November 2002 21:52  |
Phillip David
Messages: 36 Registered: April 1999
|
Member |
|
|
Marshall Perrin wrote:
> I have an application written in TCL/TK which calls IDL for plotting
> purposes. Currently it only displays a static image in a window and
> draws a few line plots. I would like to add a feature to this where,
> when the user mouses over the image, the current x & y positions and
> pixel value are displayed on screen, preferably in a little widget
> window. I wrote an IDL widget application which implements displaying
> my image along with a statusbar containing the pixel coords and value.
> However, when I call this from TCL, the TCL application locks up
> and won't respond to any TCL events until the IDL widget is closed.
>
> I've got a sinking feeling this is due to the fact that neither of these
> applications are multithreaded, and that there's no easy way around it.
> I would love for someone to tell me I'm wrong...
>
> - Marshall
Here's a link I found when I searched Google for "tcl threading"
(http://www.google.com/search?q=tcl+threading)
http://www.tcl.tk/doc/howto/thread_model.html
This might help.
Phillip
|
|
|