4 @brief Command line useg of GIS map display canvas.view).
9 (C) 2006-2009 by the GRASS Development Team
10 This program is free software under the GNU General Public
11 License (>=v2). Read the file COPYING that comes with GRASS
14 @author Jachym Cepicky
20 from threading
import Thread
24 Creates thread which will observe the command file and see, if
25 there is new command to be executed
42 self.parent.redraw =
False
43 line = self.cmdfile.readline().strip()
49 Debug.msg (3,
"Command.run(): cmd=%s" % (line))
51 self.map.AddLayer(item=
None, type=
"raster",
56 self.parent.redraw =
True
59 print "Command Thread: ",e