[GRASS-dev] wx digitizer bug

Markus Metz markus.metz.giswork at googlemail.com
Thu May 26 09:51:34 EDT 2011


can't quit the wx vector digitizer, applies to 7.0 and 6.5 (did not test 6.4)


self.StartEditing(self.layers[selection])
  File "/home/metz/src/grass-6.5.svn/dist.x86_64-unknown-
linux-gnu/etc/wxpython/gui_modules/toolbars.py", line 1174,
in StartEditing

lmgr.toolbar.Enable('vdigit', enable = False)
AttributeError
:
'GMFrame' object has no attribute 'toolbar'
Traceback (most recent call last):
  File "/home/metz/src/grass-6.5.svn/dist.x86_64-unknown-
linux-gnu/etc/wxpython/gui_modules/layertree.py", line 1132,
in OnChangeSel

mapLayer = self.GetPyData(layer)[0]['maplayer']
TypeError
:
'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/home/metz/src/grass-6.5.svn/dist.x86_64-unknown-
linux-gnu/etc/wxpython/gui_modules/layertree.py", line 1132,
in OnChangeSel

mapLayer = self.GetPyData(layer)[0]['maplayer']
TypeError
:
'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/home/metz/src/grass-6.5.svn/dist.x86_64-unknown-
linux-gnu/etc/wxpython/gui_modules/toolbars.py", line 708,
in OnExit

self.StopEditing()
  File "/home/metz/src/grass-6.5.svn/dist.x86_64-unknown-
linux-gnu/etc/wxpython/gui_modules/toolbars.py", line 1221,
in StopEditing

lmgr.toolbar.Enable('vdigit', enable = True)
AttributeError
:
'GMFrame' object has no attribute 'toolbar'


More information about the grass-dev mailing list