I am trying to figure out if Tcl/Tk is the apt choice for my GUI prototyping
tasks. I need something which I could learn quickly and put to use in short
order.
So, before I go through the trouble of downloading and installing the
software (I will be running it on Windows NT), one of the questions I
have is this:
Say I call a highly compute-intensive routine by choosing to click on a
button in my main GUI window.
While that routine is executing, will I be able to do other
tasks/click other buttons in the main window, to launch a
different (and independent) application? Or, does that main
window just hang, until the first routine is completed?
Thanks in advance to the kind soul(s) who post their responses!
Ramana
--
: Say I call a highly compute-intensive routine by choosing to click on a
: button in my main GUI window.
: While that routine is executing, will I be able to do other
: tasks/click other buttons in the main window, to launch a
: different (and independent) application? Or, does that main
: window just hang, until the first routine is completed?
Your routine has to call "update" (or "Tcl_DoOneEvent()") every once in
a while, so that pending events can be processed.
mike
Given a binary is available that auto-installs....
> While that routine is executing, will I be able to do other
> tasks/click other buttons in the main window, to launch a
> different (and independent) application? Or, does that main
> window just hang, until the first routine is completed?
That depends on how you use Tk. If you use it generically and don't exec
off processes and such, the window will hang (sort of, you can still call
periodic updates to handle window events). However, if you write a C DLL
for Tk (very easy), then you can use threads in that that should not affect
the main Tk app.
--
Jeffrey Hobbs Office: 541/346-3998
Univ of Oregon CIS GRF email: jho...@cs.uoregon.edu
URL: http://www.cs.uoregon.edu/~jhobbs/