[GRASS-dev] Integrating a python Script in menu for WinGRASS6.4.1- GRASS seems slower

Greetings

I have a Python script that works fine in Linux and in WinGRASS (running from commandline). But, I added to the menu (XML) a link to this Script and now GRASS is much slower on opening and displaying this interface. Was this expected? Or Is any problem expected? (because using commandline it runs just fine).

I added a link to my script this way:
        <menuitem>
          <label>Import Landsat</label>
          <help>Import Landsat images</help>
          <handler>self.OnMenuCmd</handler>
          <command>r.in.landsat</command>
        </menuitem>

Is this corrrect?

Thanks

Antonio

__________ Information from ESET NOD32 Antivirus, version of virus signature database 5583 (20101101) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Hi,

2010/11/2 António Rocha <antonio.rocha@deimos.com.pt>:

I have a Python script that works fine in Linux and in WinGRASS (running
from commandline). But, I added to the menu (XML) a link to this Script and
now GRASS is much slower on opening and displaying this interface. Was this
expected? Or Is any problem expected? (because using commandline it runs
just fine).

it's not expected, not sure if I understand well. Can you send me a
sample script to test it. What version of GRASS do you use?

I added a link to my script this way:
<menuitem>
<label>Import Landsat</label>
<help>Import Landsat images</help>
<handler>self.OnMenuCmd</handler>
<command>r.in.landsat</command>
</menuitem>

Is this corrrect?

yes, it is.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa