[GRASS-dev] [GRASS GIS] #2198: g.gui.iclass doesn't work

#2198: g.gui.iclass doesn't work
------------------------------------+---------------------------------------
Reporter: matmar | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: wxpython, g.gui.iclass | Platform: Linux
      Cpu: x86-64 |
------------------------------------+---------------------------------------
Hi list,

I am able to open g.gui.iclass but when I open the Class Manager, I'm not
able to close it. [[BR]]
Furthermore, I'm not able to exit from the module GUI, so it is unusable
for me. This is the linked error that I get every time I try to close
something:

{{{
File "/home/matteo/software/grass7_trunk/dist.x86_64-unknown-linux-
gnu/etc/gui/wxpython/iclass/frame.py", line 210, in OnCloseWindow
     self.GetFirstWindow().GetDigit().CloseMap()
AttributeError: 'NoneType' object has no attribute 'CloseMap'
}}}

{{{
GRASS 7.0.svn (WGS84_32N):~ > g.version -gr
version=7.0.svn
date=2014
revision=59093M
build_date=2014-01-19
libgis_revision=58670
libgis_date="2014-01-10 20:31:02 +0100 (Fri, 10 Jan 2014) "
}}}

Thanks,

Matteo

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2198&gt;
GRASS GIS <http://grass.osgeo.org>

#2198: g.gui.iclass doesn't work
------------------------------------+---------------------------------------
Reporter: matmar | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: wxpython, g.gui.iclass | Platform: Linux
      Cpu: x86-64 |
------------------------------------+---------------------------------------

Comment(by wenzeslaus):

I can reproduce it even just when trying to close just opened
`g.gui.iclass`.

{{{
Traceback (most recent call last):
   File "/.../dist.../etc/gui/wxpython/iclass/frame.py", line 210, in
OnCloseWindow
     self.GetFirstWindow().GetDigit().CloseMap()
AttributeError: 'NoneType' object has no attribute 'CloseMap'
}}}

No ''Class manager'' involved. It is actually strange that this code is
invoked also from ''Class manager''.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2198#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2198: g.gui.iclass doesn't work
------------------------------------+---------------------------------------
Reporter: matmar | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: wxpython, g.gui.iclass | Platform: Linux
      Cpu: x86-64 |
------------------------------------+---------------------------------------

Comment(by martinl):

This bug seems to be related to the recent changes in digitizer, please
try out r59096.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2198#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#2198: g.gui.iclass doesn't work
---------------------+------------------------------------------------------
  Reporter: matmar | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Resolution: fixed | Keywords: wxpython, g.gui.iclass
  Platform: Linux | Cpu: x86-64
---------------------+------------------------------------------------------
Changes (by wenzeslaus):

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

Comment:

Replying to [comment:2 martinl]:
> This bug seems to be related to the recent changes in digitizer, please
try out r59096.

Thanks, it works now. I must say that I really don't understand how r59096
fixes that or why it was possible to produce the error by pressing the
close button of ''Class manager''.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2198#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>