[GRASS-user] Single grass window as attached display

Vaclav Petras wenzeslaus at gmail.com
Sat Jan 12 02:31:49 PST 2013


On 11 January 2013 13:21, SWAPAN GHOSH <swap.ghsh at gmail.com> wrote:

> Please see the error when start bhoomi(Grass).
>
> [image: Inline image 1]
>
>
Hi, I don't understand in which circumstances are you running grass.
However, (Python exception) KeyboardInterrupt would mean, in Unix command
line, that you pressed Ctrl+C in order to interrupt the program.

BTW, for the development of any grass GUI I would suggest you to develop
keep it separate from g.gui (wxgui.py) command (which is called by
init.bat) and start your new application separately from command line (as a
python script, i.e. "python path/to/my/app.py" or as a grass module as
g.gui.* modules do).


> Thanks & Regards,
>
> Swapan
>
>
> On Fri, Jan 11, 2013 at 5:43 PM, Rashad M <mohammedrashadkm at gmail.com>wrote:
>
>> what error you are getting?
>>
>>
>> On Fri, Jan 11, 2013 at 4:44 PM, SWAPAN GHOSH <swap.ghsh at gmail.com>wrote:
>>
>>> *Dear Rashad,*
>>> *
>>> *
>>> * *As per your attachment I have change the entire program. But then
>>> grass will not start.
>>>  Please give me a out line how to deploy this program change.
>>> *
>>> *
>>> *Thanks & Regards,*
>>> *
>>> *
>>> *Swapan*
>>>
>>> On Wed, Jan 9, 2013 at 5:59 PM, Rashad M <mohammedrashadkm at gmail.com>wrote:
>>>
>>>>
>>>> try this attachment
>>>>
>>>>
>>>> On Wed, Jan 9, 2013 at 5:37 PM, SWAPAN GHOSH <swap.ghsh at gmail.com>wrote:
>>>>
>>>>> *Dear Rashad,*
>>>>>
>>>>> Can you please send me the wxPython folder by making it
>>>>> as wxPython.rar and any other related doc from your local copy.
>>>>>
>>>>> This lay out is my exact requirement. And which version of python you
>>>>> used.
>>>>>
>>>>> I am waiting for kind help.
>>>>>
>>>>> *Thanks & Regards,*
>>>>> *
>>>>> *
>>>>> *Swapan*
>>>>>
>>>>>
>>>>> On Tue, Jan 8, 2013 at 4:31 PM, Rashad M <mohammedrashadkm at gmail.com>wrote:
>>>>>
>>>>>> you may give a look at DataCatalog[1]. code is very old. I have some
>>>>>> changes in my local copy. But didnt get time to push to addons. The idea is
>>>>>> pretty much same and it can also communicate with ossim using planetSasha.
>>>>>> Unfortunately work is incomplete :(
>>>>>>
>>>>>> [1]
>>>>>> http://svn.osgeo.org/grass/grass-addons/grass6/gui/wxpython/wx.data_catalog/
>>>>>> [2]
>>>>>> http://www.geofemengineering.it/GeofemEngineering/Blog/Voci/2009/12/13_Planet_-_Sasha.html
>>>>>>
>>>>>>
>>>>>> On Tue, Jan 8, 2013 at 4:23 PM, SWAPAN GHOSH <swap.ghsh at gmail.com>wrote:
>>>>>>
>>>>>>> *Dear Vaclav,*
>>>>>>>
>>>>>>> Thank you very much for your good advice. I am trying to make it as
>>>>>>> single window.
>>>>>>>
>>>>>>> I have already see the link you send and found it suitable.
>>>>>>> Actually, I am not Python developer. I am basically c\c++ developer
>>>>>>> for console application. Here GUI is built by wxPython. So I have to learn
>>>>>>> the wxPython.
>>>>>>>
>>>>>>> Once, the problem is solved surely I share it with you and the
>>>>>>> grass-user list.
>>>>>>>
>>>>>>>
>>>>>>> *Thanks & Regards*
>>>>>>> *
>>>>>>> *
>>>>>>> *Swapan*
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Jan 8, 2013 at 1:55 PM, Vaclav Petras <wenzeslaus at gmail.com>wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> this is more dev than user question since a lot of programming is
>>>>>>>> needed. There are some wxGUI code refactoring efforts (code is
>>>>>>>> published in grass 7, description will be published). One of long
>>>>>>>> term
>>>>>>>> goals of refactoring is to enable creation of one big window with
>>>>>>>> lmgr
>>>>>>>> and display. However, this refactoring is not finished and currently
>>>>>>>> it is very hard to reuse wxGUI components/classes to build another
>>>>>>>> GUI.
>>>>>>>>
>>>>>>>> I thing you have two possibilities:
>>>>>>>>
>>>>>>>> 1) Try to connect lmgr and display anyway. Maybe, it is possible to
>>>>>>>> make it work for some task but the whole thing would be probably
>>>>>>>> very
>>>>>>>> buggy.
>>>>>>>>
>>>>>>>> 2) Build a new GUI from components/classes which are already
>>>>>>>> prepared
>>>>>>>> for reuse. There is a wxIClass (iclass, g.gui.iclass) module which
>>>>>>>> reuses mapwindow (widget where a map i placed) and adds some very
>>>>>>>> simple layer management (however, simple layer manager class is
>>>>>>>> still
>>>>>>>> missing). Depends on what you want, but maybe this is the way you
>>>>>>>> want
>>>>>>>> to go.
>>>>>>>>
>>>>>>>> Since this is a problem which is interesting for more people [1,2],
>>>>>>>> please share your ideas and advances.
>>>>>>>>
>>>>>>>> Vaclav
>>>>>>>>
>>>>>>>> [1] http://grasswiki.osgeo.org/wiki/WxGUI#Layout
>>>>>>>> [2] http://grasswiki.osgeo.org/wiki/GRASS_SoC_Ideas_2009#wxGUI
>>>>>>>>
>>>>>>>>
>>>>>>>> On 8 January 2013 08:35, SWAPAN GHOSH <swap.ghsh at gmail.com> wrote:
>>>>>>>> > Dear all,
>>>>>>>> >
>>>>>>>> > Any body can help me for technical solution to change the current
>>>>>>>> window for
>>>>>>>> > grass gis 6.5 to attached display as layer manager and display
>>>>>>>> window in a
>>>>>>>> > single window.
>>>>>>>> >
>>>>>>>> > Actually I  want to change this detached window for my own
>>>>>>>> perpose.
>>>>>>>> >
>>>>>>>> > Thank & Regards,
>>>>>>>> >
>>>>>>>> > Swapan Ghosh
>>>>>>>> >
>>>>>>>> > _______________________________________________
>>>>>>>> > grass-user mailing list
>>>>>>>> > grass-user at lists.osgeo.org
>>>>>>>> > http://lists.osgeo.org/mailman/listinfo/grass-user
>>>>>>>> >
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> grass-user mailing list
>>>>>>> grass-user at lists.osgeo.org
>>>>>>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>>    Rashad
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>>    Rashad
>>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>>    Rashad
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130112/90717ffa/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 30207 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130112/90717ffa/attachment-0001.png>


More information about the grass-user mailing list