[GRASS-dev] [GRASS GIS] #107: wxgrass: trying to set options for scalebar or legend gives TypeError

#107: wxgrass: trying to set options for scalebar or legend gives TypeError
---------------------------------------------+------------------------------
Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Keywords: wxgrass overlay scalebar legend |
---------------------------------------------+------------------------------
Clicking on the 'Set options' of either the scalebar or the legend overlay
in the map display, I get the following traceback and no options window:

Traceback (most recent call last):
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-
gnu/etc/wxpython/gui_modules/mapdisp.py", line 3481, in OnOptions

parentframe=self)
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-
gnu/etc/wxpython/gui_modules/menuform.py", line 1409, in ParseCommand

propwin=self.mf)
TypeError
:
GetOptData() got an unexpected keyword argument 'layer'

My config: grass svn-head 20080327 python-wxgtk 2.8.7.1 python 2.4.4

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/107&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#107: wxgrass: trying to set options for scalebar or legend gives TypeError
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: wxgrass overlay scalebar legend
-----------------------+----------------------------------------------------
Comment (by mlennert):

Sorry, forgot to mention that this is on Debian/Etch GNU/Linux.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/107#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#107: wxgrass: trying to set options for scalebar or legend gives TypeError
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: wxgrass overlay scalebar legend
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => martinl
* cc: grass-dev@lists.osgeo.org (added)

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/107#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#107: wxgrass: trying to set options for scalebar or legend gives TypeError
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: wxgrass overlay scalebar legend
-----------------------+----------------------------------------------------
Comment (by martinl):

Should be fixed in trunk now, r30878. Martin

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/107#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#107: wxgrass: trying to set options for scalebar or legend gives TypeError
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: wxgrass overlay scalebar legend
-----------------------+----------------------------------------------------
Comment (by mlennert):

It is fixed in the sense that the first time I I can now open the set
options dialog and set options perfectly. However, when I close the entire
"Scale and north arrow" dialog and then reopen it, click on "Options",
change an option and then click on OK or Apply, I get the following error:

Traceback (most recent call last):
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-
linux-gnu/etc/wxpython/gui_modules/menuform.py", line 728,
in OnApply

self)
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-
linux-gnu/etc/wxpython/gui_modules/gdialogs.py", line 340,
in GetOptData

self.parent.MapWindow.overlays[self.ovlId]['params'] =
params
   File "/usr/lib/python2.4/site-
packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14314, in
__getattr__

raise PyDeadObjectError(self.attrStr % self._name)
wx._core
.
PyDeadObjectError
:
The C++ part of the DecorationDialog object has been
deleted, attribute access no longer allowed.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/107#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#107: wxgrass: trying to set options for scalebar or legend gives TypeError
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: wxgrass overlay scalebar legend
-----------------------+----------------------------------------------------
Comment (by mlennert):

Little extra info:

In the case of a raster legend, I don't even have to change anything in
the Options dialog window to get the error. Just opening the "Legend"
dialog a second time, clicking on "Options" and then on "Ok" gives the
error.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/107#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#107: wxgrass: trying to set options for scalebar or legend gives TypeError
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: wxgrass overlay scalebar legend
-----------------------+----------------------------------------------------
Comment (by martinl):

Replying to [comment:4 mlennert]:
> It is fixed in the sense that the first time I I can now open the set
options dialog and set options perfectly. However, when I close the entire
"Scale and north arrow" dialog and then reopen it, click on "Options",
change an option and then click on OK or Apply, I get the following error:

{{{
> Traceback (most recent call last):
> File "/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-
> linux-gnu/etc/wxpython/gui_modules/menuform.py", line 728,
> in OnApply
>
> self)
> File "/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-
> linux-gnu/etc/wxpython/gui_modules/gdialogs.py", line 340,
> in GetOptData
>
> self.parent.MapWindow.overlays[self.ovlId]['params'] =
> params
> File "/usr/lib/python2.4/site-
> packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14314, in
> __getattr__
>
> raise PyDeadObjectError(self.attrStr % self._name)
> wx._core
> .
> PyDeadObjectError
> :
> The C++ part of the DecorationDialog object has been
> deleted, attribute access no longer allowed.
}}}

Should be fixed now, r30922. Martin

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/107#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#107: wxgrass: trying to set options for scalebar or legend gives TypeError
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: fixed | Keywords: wxgrass overlay scalebar legend
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: assigned => closed
  * resolution: => fixed

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/107#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/