[GRASS-dev] backgrounding wxGUI, defaults for 6.x
Hamish
hamish_b at yahoo.com
Tue Sep 22 11:27:39 EDT 2009
Hamish wrote:
> > Is it possible to have g.gui detach the GUI from the terminal prompt?
Glynn:
> Change g.gui to use G_spawn_ex() with SF_BACKGROUND.
excellent. please review r39283; AFAICT this is the first use of that
signal in the code.
After about 10 seconds of testing I discovered that it would be useful to
add a G_sleep(3) as well.
which then makes me wonder why it takes so long to start up, even
the second time in a row, when it should all still be cached, it is
seemingly not so fast on an otherwise fast computer.
hmmm,
svn/grass65$ find | grep '\.pyc$'
./dist.i686-pc-linux-gnu/etc/wxpython/gui_modules/__init__.pyc
./dist.i686-pc-linux-gnu/etc/wxpython/gui_modules/globalvar.pyc
./dist.i686-pc-linux-gnu/etc/wxpython/images/__init__.pyc
./dist.i686-pc-linux-gnu/etc/wxpython/icons/__init__.pyc
./swig/python/NumPtr.pyc
./swig/python/python_grass6.pyc
shouldn't wxgui.py byte-compile itself into wxgui.pyc the first time
it is run? (as this is portable and after installation the user might
not have permissions to write the file, so should a 'python wxgui.py
--test' or something be added to the Makefile to get the .pyc built/
installed?)
see swig/python/README item #4.
Hamish
More information about the grass-dev
mailing list