[GRASS-dev] [GRASS GIS] #1987: wxGUI: traceback in map selection drop down

GRASS GIS trac at osgeo.org
Mon Jun 3 23:02:16 PDT 2013


#1987: wxGUI: traceback in map selection drop down
----------------------+-----------------------------------------------------
  Reporter:  hamish   |       Owner:  grass-dev@…              
      Type:  defect   |      Status:  closed                   
  Priority:  trivial  |   Milestone:  6.4.3                    
 Component:  wxGUI    |     Version:  svn-trunk                
Resolution:  fixed    |    Keywords:  list tree                
  Platform:  Linux    |         Cpu:  x86-64                   
----------------------+-----------------------------------------------------

Comment(by hamish):

 tested in all branches, works great, thanks.


 I notice I can right-click on a map name in the map selection drop down,
 and it shows me the map layer context menu. Not surprisingly, clicking on
 one of the menu entries (e.g. opacity) from there before a map is selected
 leads to another traceback:

 {{{
 Traceback (most recent call last):
   File "/home/hamish/src/grass/svn/grass65/dist.x86_64
 -unknown-linux-gnu/etc/wxpython/lmgr/layertree.py", line
 676, in OnPopupOpacityLevel

 self.ChangeLayerOpacity(layer = self.layer_selected, value =
 dlg.GetOpacity())
   File "/home/hamish/src/grass/svn/grass65/dist.x86_64
 -unknown-linux-gnu/etc/wxpython/lmgr/layertree.py", line
 692, in ChangeLayerOpacity

 self._getLayerName(layer))
   File "/usr/lib64/python2.6/dist-
 packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
 line 2431, in SetItemText

 self.CalculateSize(item, dc)
   File "/usr/lib64/python2.6/dist-
 packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
 line 5655, in CalculateSize

 text_w, text_h, dummy =
 dc.GetMultiLineTextExtent(item.GetText())
   File "/usr/lib64/python2.6/dist-
 packages/wx-2.8-gtk2-unicode/wx/_gdi.py", line 3775, in
 GetMultiLineTextExtent

 return _gdi_.DC_GetMultiLineTextExtent(*args, **kwargs)
 TypeError
 :
 String or Unicode type required
 }}}


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1987#comment:3>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list