[GRASS-dev] Re: [GRASS GIS] #1425: error in python _core.py from wxNVIZ

GRASS GIS trac at osgeo.org
Sun Aug 21 13:26:57 EDT 2011


#1425: error in python _core.py from wxNVIZ
---------------------------+------------------------------------------------
 Reporter:  cmbarton       |       Owner:  grass-dev@…              
     Type:  defect         |      Status:  new                      
 Priority:  normal         |   Milestone:  7.0.0                    
Component:  wxGUI          |     Version:  svn-trunk                
 Keywords:  mouse, wxNVIZ  |    Platform:  Unspecified              
      Cpu:  Unspecified    |  
---------------------------+------------------------------------------------

Comment(by cmbarton):

 Replying to [ticket:1425 cmbarton]:
 > The following code raises an error when a mouse click is registered in
 wxNVIZ
 >
 > {{{

     def ReleaseMouse(*args, **kwargs):
         """
         ReleaseMouse(self)

         Releases mouse input captured with wx.Window.CaptureMouse.
         """
         return _core_.Window_ReleaseMouse(*args, **kwargs)

 > }}}
 >
 > The error is
 >
 > {{{
 >
 > Traceback (most recent call last):
 >   File "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-
 > darwin10.8.0/etc/gui/wxpython/gui_modules/nviz_mapdisp.py",
 > line 341, in OnMouseAction
 >
 > self.OnLeftUp(event)
 >   File "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-
 > darwin10.8.0/etc/gui/wxpython/gui_modules/nviz_mapdisp.py",
 > line 475, in OnLeftUp
 >
 > self.ReleaseMouse()
 >   File "/Users/Shared/grass_dev/grass70_dev/macosx/dist/GRAS
 > S-7.0.app/Contents/MacOS/etc/python/wx/_core.py", line 9744,
 > in ReleaseMouse
 >
 > return _core_.Window_ReleaseMouse(*args, **kwargs)
 > wx._core
 > .
 > PyAssertionError
 > :
 > C++ assertion "GetCapture() == this" failed at /BUILD
 > /wxPython-src-2.8.12.0/src/common/wincmn.cpp(2536) in
 > ReleaseMouse(): attempt to release mouse, but this window
 > hasn't captured it
 >
 > }}}


 I had to correct the code I put in the original report.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1425#comment:1>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list