MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: help about calling external programs through a Button


On Jun 27, 5:23 am, "=C0=F7=D5=FD=BC=AA" <zhengji... at gmail.com> wrote:
> hi all,
>
> I am just starting to use more and more active components to build GUI
> tools in mathematica.
>
> Now I want to create a button, by clicking it, an external program is
> called, and its output is redirected to a temp file. Then read this
> text file and process it.
>
> The problem is that all of the operations happening in the event
> handler of the button while the external program is time consuming,
> which would cause Mathematica raise a warning like "Dynamic update
> takes too much time. Would you like to continue to wait?" No matter I
> select "continue wait" or not, Run function can not wait the external
> program to complete, then the processing of the output can not be
> performed, either.
>
> Any ideas for this? Thanks a lot.

From the Button[] documentation:

"Use Method->"Queued" to evaluate button functions on the main link
which never times out"

-Rob


  • Prev by Date: Re: Modulus / Absolute Value
  • Next by Date: Re: ContourPlot problem
  • Previous by thread: help about calling external programs through a Button
  • Next by thread: Reading a module library from plain text file