Issue 118: AttributeError: 'Image' object has no attribute '_width'
Status:  Done
Owner: ----
Closed:  Dec 2009
Project Member Reported by tommy.bjorling@gmail.com, Dec 2, 2009
What steps will reproduce the problem?
1. Run touchtracer.py
2. Try to use it.

What is the expected output? What do you see instead?

There is a lockup and it gives a traceback:

[WARNING           ] Call to deprecated function get_texture.  In C:
\Python26\lib\site-packages\pymt\core\image\__init__.py, Line: 182.
Traceback (most recent call last):
  File "D:\Development\Framework\pymt\examples\touchtracer
\touchtracer.py", line 77, in <module>
    runTouchApp()
  File "C:\Python26\lib\site-packages\pymt\base.py", line 314, in 
runTouchApp
    pymt_window.mainloop()
  File "C:\Python26\lib\site-packages\pymt\ui\window\win_pygame.py", line 
92, in mainloop
    evloop.idle()
  File "C:\Python26\lib\site-packages\pymt\base.py", line 163, in idle
    pymt_window.dispatch_event('on_draw')
  File "C:\Python26\lib\site-packages\pymt\event.py", line 160, in 
dispatch_event
    if func(*args):
  File "C:\Python26\lib\site-packages\pymt\ui\window\__init__.py", line 
366, in on_draw
    w.dispatch_event('on_draw')
  File "C:\Python26\lib\site-packages\pymt\event.py", line 160, in 
dispatch_event
    if func(*args):
  File "C:\Python26\lib\site-packages\pymt\modules\feedback.py", line 107, 
in on_draw
    newsprite = Image(ring_img, pos=touch.pos, opacity=0.75, scale=0.10)
  File "C:\Python26\lib\site-packages\pymt\core\image\__init__.py", line 
131, in __init__
    self.__setattr__(attr, arg.__getattribute__(attr))
AttributeError: 'Image' object has no attribute '_width'

Please use labels and text to provide additional information.

Dec 4, 2009
Project Member #1 txprog
(No comment was entered for this change.)
Status: Done
Labels: Milestone-0.4 Component-Core