[GRASSGUI] Re: [GRASS-dev] new python gui
Michael Barton
michael.barton at asu.edu
Sun Mar 25 23:50:48 EDT 2007
Hi Massimo,
Thanks for testing wxgrass. Please post your comments to the grass-gui list.
On 3/25/07 6:47 PM, "Massimo Di Stefano" <massimodisasha at yahoo.it> wrote:
>
> svn co https://grasssvn.itc.it/svn/grassaddons/trunk/grassaddons/gui
>
> Checked out revision 318
>
> when i start using : python wxgui.py
>
> GRASS 6.3.cvs (salerno):~/gui > python wxgui.pyTraceback (most recent
> call last):
> File "wxgui.py", line 23, in <module>
> import images
> ImportError: No module named images
>
> i commented the line 23 in wxgui.py
>
> #import images
This was in for testing and I thought it was taken out. I've fixed this.
>
> now it works.
>
> start the gis manager :
>
> note:
> many commands in the menu bar, works
> but for a command that have many option (...) the command window that
> appair,
> is largest than the screen size, so i'm not able to use it :
>
> (this is the same problem that i had developping the grass-tools for
> qgis)
> ...needed a scrollbar ?
Which command is a problem?
>
>
> In the Gis manager window :
> add a raster (or vector)
> the feature : (double click to set properties)
> do not works
> so i'm not able too use it.
I don't have this problem with the current version. However, I did find a
bug in launching a command dialog from the wxgrass command line. I've fixed
this and committed it to the svn repository. Maybe it will help you.
Michael
>
> bash log when i try with double click on (raster, vector, rgb ...):
>
> GRASS 6.3.cvs (salerno):~/gui > Traceback (most recent call last):
> File "/Users/epifanio/gui/gui_modules/wxgui_utils.py", line 212,
> in onActivateLayer
> menuform.GUI().parseCommand('d.rast', gmpath, completed=
> (self.getOptData,layer,self.params), parentframe=self)
> File "/Users/epifanio/gui/gui_modules/menuform.py", line 659, in
> parseCommand
> xml.sax.parseString(cmdout2, handler)
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/xml/sax/__init__.py", line 49, in parseString
> parser.parse(inpsrc)
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/xml/sax/expatreader.py", line 107, in parse
> xmlreader.IncrementalParser.parse(self, source)
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/xml/sax/xmlreader.py", line 123, in parse
> self.feed(buffer)
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/xml/sax/expatreader.py", line 207, in feed
> self._parser.Parse(data, isFinal)
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/xml/sax/expatreader.py", line 381, in external_entity_ref
> "")
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/xml/sax/saxutils.py", line 295, in prepare_input_source
> f = urllib.urlopen(source.getSystemId())
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/urllib.py", line 82, in urlopen
> return opener.open(url)
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/urllib.py", line 190, in open
> return getattr(self, name)(url)
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/urllib.py", line 451, in open_file
> return self.open_local_file(url)
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/urllib.py", line 465, in open_local_file
> raise IOError(e.errno, e.strerror, e.filename)
> IOError: [Errno 2] No such file or directory: '/Applications/
> GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules//grass-
> interface.dtd'
>
>
> seems that it try to find :
>
> wx/gui_modules//grass-interface.dtd
>
> in my $gisbase/etc :
>
> '/Applications/GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules//
> grass-interface.dtd'
>
> that there isn't in my 6.3 source installation; (one week ago)
> i need a more recent 6.3 cvs ?
>
> about the script folder:
> ... exported the path :
>
> export PATH=/.../.../gui/scripts/:$PATH
>
> p.mon
> p.rast
> p.vect
>
> works fine, great tools
>
> important:
> i'm not able to redraw a map into the same monitor
>
> p.mon select=px seems do not works
>
>
>
> Massimo
>
> Il giorno 26/mar/07, alle ore 02:12, Michael Barton ha scritto:
>
>> You may have already solved this.
>>
>> Last night, I did a rename of several core components of wxgrass.
>> gism.py
>> has been renamed to wxgui.py. I updated all modules calling this I
>> think.
>> Please download new versions of all (including the scripts) and let
>> me know
>> if you have problems.
>>
>> Michael
>>
>>
>> On 3/24/07 12:53 AM, "Massimo Di Stefano" <massimodisasha at yahoo.it>
>> wrote:
>>
>>>
>>> Hi,
>>>
>>> i'm tring to use the py-gui grass-interface
>>> not for works, i'm trying it :-)
>>> really nice !
>>> i've downloaded the last svn version,
>>>
>>> thanks to all the grass developper!
>>>
>>> the new command p.mon p.rast works fine,
>>>
>>> but i've some problems using "p.mon select=p.."
>>> to redraw a new image in the same monitor...
>>> it open a new monitor and not rewrite in the same monitor...
>>> ...again
>>> i've noted that in the last svn the command to start the gis.m
>>> interface
>>>>> "python gism.py"
>>> do not works
>>> while in the last "Gui" (wiki grass addons) it works
>>>
>>> it give me :
>>>
>>> GRASS 6.3.cvs (salerno):~/grassaddons/gui > python gism.py
>>> Traceback (most recent call last):
>>> File "gism.py", line 445, in <module>
>>> app = GMApp(0)
>>> File "//Library/Frameworks/Python.framework/Versions/2.5/lib/
>>> python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 7757,
>>> in __init__
>>> self._BootstrapApp()
>>> File "//Library/Frameworks/Python.framework/Versions/2.5/lib/
>>> python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 7354,
>>> in _BootstrapApp
>>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>>> File "gism.py", line 427, in OnInit
>>> mainframe = GMFrame(None, -1, "")
>>> File "gism.py", line 110, in __init__
>>> self.menubar = self.__createMenuBar()
>>> File "gism.py", line 166, in __createMenuBar
>>> self.menubar.Append(self.__createMenu(menuItems), menuLabel)
>>> File "gism.py", line 181, in __createMenu
>>> self.__createMenuItem(menu, *eachItem)
>>> File "gism.py", line 193, in __createMenuItem
>>> rhandler = eval(handler)
>>> File "<string>", line 1, in <module>
>>> AttributeError: 'GMFrame' object has no attribute 'Nomethod'
>>> GRASS 6.3.cvs (salerno):~/grassaddons/gui >
>>>
>>> i'm on osx 10.4.9
>>> grass 6.3cvs
>>>
>>> thanks for any comments
>>>
>>> Massimo
>>>
>>>
>>
>> __________________________________________
>> Michael Barton, Professor of Anthropology
>> School of Human Evolution & Social Change
>> Center for Social Dynamics & Complexity
>> Arizona State University
>>
>> phone: 480-965-6213
>> fax: 480-965-7671
>> www: http://www.public.asu.edu/~cmbarton
>>
>>
>
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
More information about the grass-gui
mailing list