Hello all
Is there a way in tcltkgrass to have the output window automatically
destroy itself for a particular module? With the change to d.rast to
output a percentage indicator, tcltkgrass pops up a window to display
this output. However, by default, the user must close the window
directly, which is a pain in this case. Can we change this behaviour for
d.rast so that it automatically closes?
The proper thing to do would be to have d.rast pop up a process
indicator (I think there is one in bwidget) that is destroyed when
complete but I'm not sure how much work that would be.
What do you think?
--
Sincerely,
Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
People who think they know everything are very irritating to those
of us who do. ---Anonymous
Jazz and Trek Rule!!!
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'
Hi Justin,
On Thu, May 10, 2001 at 03:16:43PM +0700, Justin Hickey wrote:
Hello all
Is there a way in tcltkgrass to have the output window automatically
destroy itself for a particular module? With the change to d.rast to
output a percentage indicator, tcltkgrass pops up a window to display
this output. However, by default, the user must close the window
directly, which is a pain in this case. Can we change this behaviour for
d.rast so that it automatically closes?
a small sidenote: I have added this percentage output due to the changes
in XDRIVER - when drawing large maps, you may wait a few seconds until
the image is draw completely in one step. In past, with line-by-line
drawing in d.rast the user has been seeing what's ongoing. To avoid
confusion, d.rast chats now.
However, these left-over windows (some other modules are affected, too),
are quite inconvenient. Maybe the messages could be directly printed into
a tcltkgrass module window?
+-----------------------------+
| d.rast |
+-----------------------------+
|Raster map to be displayed: |
| ______________ raster |
| |
|o Overlay |
|-----------------------------+
|d.rast_____________________ |
+-----------------------------+
| New message board | <- here all related messages should
+_____________________________+ appear instead of opening another
window.
This would definitly improve the optical impression of tcltkgrass.
The proper thing to do would be to have d.rast pop up a process
indicator (I think there is one in bwidget) that is destroyed when
complete but I'm not sure how much work that would be.
Question is how the G_percent() communicates with external modules...
Just my 0.02 Euro,
Markus
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'
Hi Markus
Markus Neteler wrote:
a small sidenote: I have added this percentage output due to the
changes in XDRIVER - when drawing large maps, you may wait a few
seconds until the image is draw completely in one step. In past, with
line-by-line drawing in d.rast the user has been seeing what's
ongoing. To avoid confusion, d.rast chats now.
Yes, I agree that the percentage output needs to stay as it is very
crucial as you point out. I just want to change the GUI in tcltkgrass.
However, these left-over windows (some other modules are affected,
too), are quite inconvenient. Maybe the messages could be directly
printed into a tcltkgrass module window?
+-----------------------------+
| d.rast |
+-----------------------------+
|Raster map to be displayed: |
| ______________ raster |
| |
|o Overlay |
|-----------------------------+
|d.rast_____________________ |
+-----------------------------+
| New message board | <- here all related messages should
+_____________________________+ appear instead of opening another
window.
This would definitly improve the optical impression of tcltkgrass.
This is a good idea! I think I could change it without too much trouble
if somebody could point me to the correct place in the code to make
these changes.
> The proper thing to do would be to have d.rast pop up a process
> indicator (I think there is one in bwidget) that is destroyed when
> complete but I'm not sure how much work that would be.
Question is how the G_percent() communicates with external modules...
I know how to do this. It is the same technique I will use with the new
initialization code. Basically, separate the interface from the code. So
where G_percent calls fprintf() we replace with something like
DisplayPercent() which will do the proper thing (call fprintf or a
Tcl/Tk function) depending on the current interface. However, I would
not propose this change until 5.1.
So, can anyone give me some pointers in changing the module windows in
tcltkgrass?
--
Sincerely,
Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
People who think they know everything are very irritating to those
of us who do. ---Anonymous
Jazz and Trek Rule!!!
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'