<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 9, 2017 at 5:01 AM, Ang Sherpa <span dir="ltr"><<a href="mailto:angsherpa232@gmail.com" target="_blank">angsherpa232@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>However, the d.mon does not open even after executing <br></div><span class="gmail-"><div>from grass.script.setup import set_gui_path<br></div><div>set_gui_path()</div></span></blockquote><div><br></div><div>This is not related to `d.mon wx1` (at least not directly). This is for cases when you write your GUI using wxPython and GRASS' wxGUI. Kind of like the following (which is actually d.mon wx* implementation) but simpler:<br><br><a href="https://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/mapdisp/main.py">https://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/mapdisp/main.py</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-"><div><br></div></span><div>Am I still missing something?</div><div><br></div><div>I also tried running by directly injecting 'd.mon start=wx1' command to the subprocess itself. With this approach I got an error as stated in ##ERROR (as shown in attachement_2)</div><div>subprocess.Popen(['cmd','/K','<wbr>grass72 -text','<b>d.mon start=wx1</b>'],cwd=gisbase)<br></div><div></div></blockquote></div><br></div><div class="gmail_extra">This is missing --exec parameters and is likely not appropriate together with grass.script.setup.init().<br><br></div><div class="gmail_extra">However, the question is, why do you need it and what would you do with that if it worked? Do you want to just show the data? Or do you want to interact with the display? Get coordinates? Set computational region? Why not running in the GRASS GIS and let user use standard ways of setting computational region extent and resolution? Gives using `g.gui -f` instead of `d.mon wx1` an acceptable result? (I probably need detailed answer to each of those questions to understand what you are trying to achieve.)<br><br></div><div class="gmail_extra">Vaclav<br></div></div>