[GRASS5] Cut and paste of commands in new menus

Michael Barton michael.barton at asu.edu
Tue Mar 9 13:18:39 EST 2004

I remembered this discussion and finally got around to looking for it. 
Fortunately I had saved this email.

I've now included this in the new menu system I'm working on. You 
should be able to cut commands built by the menus and then paste them 
somewhere else (e.g., a text file to save or on the command line to 
reuse without returning to the menus).

Thanks for figuring this out. It is quite useful.

Michael Barton

On Wednesday, February 18, 2004, at 04:01  AM, 
grass5-request at grass.itc.it wrote:

> From: Hamish <hamish_nospam at yahoo.com>
> Date: Tue Feb 17, 2004  9:40:12  PM America/Phoenix
> To: Glynn Clements <glynn.clements at virgin.net>
> Cc: mlennert at club.worldonline.be, grass5 at grass.itc.it
> Subject: Re: [GRASS5] grass5.0/5.3 - tcltkgrass: command line in the 
> module windows is not copyable
>>>>> A question that came up on the French speaking list: In the
>>>>> module windows opened by tcltkgrass, the command line that the
>>>>> chosen opens create is displayed in the last text field of the
>>>>> window. Before, one could copy this text field (and thus include
>>>>> the command in a script, or simply learn how to use the command
>>>>> line). Now, this field is not copyable anymore (at least under
>>>>> Debian testing/unstable with XFCE and under Mandrake 9.2).
>>>>> Anyone know why?
> ...
>> src/tcltkgrass/main/gui.tcl, lines 241-242:
>>     [create_entry $path num $variable "" 1 ${array}(command_line)] \
>>         configure -state disabled -fg blue -relief solid
>> My suspicion is that "-state disabled" inhibits selection as well as
>> modification.
> ...
>> In any case, try removing the "-state disabled" and see if that
>> helps.
> Yes, after removing that you can select & paste text from the command 
> box.
> If you try typing into the command box, the cusor advances but the text
> (and command that is run) doesn't change. The cursor stops advancing
> when you get to the end of the displayed text.
> Hamish
Michael Barton, Professor & Curator
Department of Anthropology
Arizona State University
Tempe, AZ  85287-2402

voice: 480-965-6262; fax: 480-965-7671
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2608 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20040309/a7765637/attachment.bin

More information about the grass-dev mailing list