Re: Embedding GUI into a computational procedure [message #60111] |
Wed, 30 April 2008 15:52 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Brian writes:
> Help! I've built a GUI and I want to call it from a main function.
> The problem I'm running into is that it builds the GUI then keeps on
> going and doesn't wait for me to do anything with the GUI. Is there a
> way to make the program pause until I have entered my user data?
Sounds like you wanted to build a pop-up dialog widget:
http://www.dfanning.com/widget_tips/popup.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Embedding GUI into a computational procedure [message #60112 is a reply to message #60111] |
Wed, 30 April 2008 15:10  |
Loren Anderson
Messages: 22 Registered: August 2007
|
Junior Member |
|
|
On Apr 30, 5:45 pm, Brian <cavanaug...@gmail.com> wrote:
> Help! I've built a GUI and I want to call it from a main function.
> The problem I'm running into is that it builds the GUI then keeps on
> going and doesn't wait for me to do anything with the GUI. Is there a
> way to make the program pause until I have entered my user data?
>
> Thanks,
> Brian
If I understand you correctly, I ran into this same problem recently.
When you register the program with XManager, try setting the "noblock"
keyword to 0 (create a blocking widget). The commandline will be
blocked, but you can do what you want with the GUI and no further
processing will happen. When the GUI is destroyed, everything will
continue on as normal.
-Loren
|
|
|