Issue 177: AttributeError: 'NoneType' object has no attribute 'to_widget'
Status:  Done
Owner: ----
Closed:  Feb 2010
Project Member Reported by tommy.bjorling@gmail.com, Jan 12, 2010
What steps will reproduce the problem?
1. Run desktop sample.
2. Bring up menu.
3. Select SVG Viewer.
4. Right click with mouse to get the red dot.
5. Exit SVG Viewer.
6. Left click on red dot to remove it.

What is the expected output? What do you see instead?
 - This will produce the following error message:

C:\pymt-install\pymt\examples\desktop>start.py
[INFO              ] [No OpenGL_accelerate module loaded] No module named 
OpenGL_accelerate
[INFO              ] [Unable to load registered array format handler 
numeric]
Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\pyopengl-3.0.1b2-py2.6-win32.egg
\OpenGL\arrays\formathandler.py", line 44, in loadPlugin
    plugin_class = entrypoint.load()
  File "C:\Python26\lib\site-packages\pyopengl-3.0.1b2-py2.6-win32.egg
\OpenGL\plugins.py", line 14, in load
    return importByName( self.import_path )
  File "C:\Python26\lib\site-packages\pyopengl-3.0.1b2-py2.6-win32.egg
\OpenGL\plugins.py", line 28, in importByName
    module = __import__( ".".join(moduleName), {}, {}, moduleName)
  File "C:\Python26\lib\site-packages\pyopengl-3.0.1b2-py2.6-win32.egg
\OpenGL\arrays\numeric.py", line 15, in <module>
    raise ImportError( """No Numeric module present: %s"""%(err))
ImportError: No Numeric module present: No module named Numeric

[INFO              ] [Camera  ] using <gstreamer> as camera provider
[WARNING           ] [Image   ] Unable to use <pil> as loader!
[INFO              ] [Text    ] using <pygame> as text provider
[INFO              ] [Video   ] using <gstreamer> as video provider
[INFO              ] [OSC     ] using <thread> for socket
[INFO              ] [Window  ] use Pygame as window provider.
[WARNING           ] [Base    ] Unknown <wm_touch> provider
[WARNING           ] [Base    ] Unknown <wm_pen> provider
[INFO              ] [Base    ] Start application main loop
[INFO              ] [OSC     ] listening for Tuio on 0.0.0.0:3333
[INFO              ] GL Extension GL_EXT_framebuffer_object available
[INFO              ] [Base    ] Leaving application in progress...
Traceback (most recent call last):
  File "C:\pymt-install\pymt\examples\desktop\start.py", line 278, in 
<module>
    runTouchApp()
  File "C:\Python26\lib\site-packages\pymt\base.py", line 318, in 
runTouchApp
    pymt_window.mainloop()
  File "C:\Python26\lib\site-packages\pymt\ui\window\win_pygame.py", line 
116, in mainloop
    evloop.idle()
  File "C:\Python26\lib\site-packages\pymt\base.py", line 164, in idle
    self.dispatch_input()
  File "C:\Python26\lib\site-packages\pymt\base.py", line 154, in 
dispatch_input
    self.post_dispatch_input(type=type, touch=touch)
  File "C:\Python26\lib\site-packages\pymt\base.py", line 112, in 
post_dispatch_input
    touch.x, touch.y = wid.parent.to_widget(touch.x, touch.y)
  File "C:\Python26\lib\site-packages\pymt\ui\widgets\widget.py", line 
283, in to_widget
    x, y = self.parent.to_widget(x, y)
  File "C:\Python26\lib\site-packages\pymt\ui\widgets\widget.py", line 
283, in to_widget
    x, y = self.parent.to_widget(x, y)
AttributeError: 'NoneType' object has no attribute 'to_widget'
Exception OpenGL.error.NullFunctionError: NullFunctionError('Attempt to 
call an undefined function glDeleteFramebuffersEXT, check for bool(glDele
teFramebuffersEXT) before calling',) in <bound method HardwareFbo.__del__ 
of <pymt.graphx.fbo.HardwareFbo object at 0x066263B0>> ignored

C:\pymt-install\pymt\examples\desktop>

Some system information:
Windows 7 64bit
Evaluation copy build 7100
with python 2.6.4 32bit
Feb 10, 2010
Project Member #1 txprog
was fixed.
Status: Done