Issue 283: launcher.py crashes when controlled by cursor
Status:  Done
Owner: ----
Closed:  Jul 2010
Reported by Reakina...@gmail.com, Jul 11, 2010
What steps will reproduce the problem?
1. open examples/launcher.py
2. right-click on menu with mouse (touchpad in my case)
3. scroll to the desired app with left-click-drag (not really necessary)
4. click on app with left-click and no drag 
5. The app opens, but the first red circle remains where the right-click took place.
6. Left-click on the red circle to try to release it and wamo, down she goes.

Using pymt master branch.

Traceback (most recent call last):
  File "start.py", line 280, in <module>
    runTouchApp()
  File "/home/r/code/pymt/master/pymt/base.py", line 366, in runTouchApp
    pymt_window.mainloop()
  File "/home/r/code/pymt/master/pymt/ui/window/win_pygame.py", line 192, in mainloop
    self._mainloop()
  File "/home/r/code/pymt/master/pymt/ui/window/win_pygame.py", line 124, in _mainloop
    evloop.idle()
  File "/home/r/code/pymt/master/pymt/base.py", line 214, in idle
    self.dispatch_input()
  File "/home/r/code/pymt/master/pymt/base.py", line 199, in dispatch_input
    self.post_dispatch_input(type=type, touch=touch)
  File "/home/r/code/pymt/master/pymt/base.py", line 169, in post_dispatch_input
    wid.dispatch_event('on_touch_up', touch)
  File "/home/r/code/pymt/master/pymt/event.py", line 362, in dispatch_event
    if getattr(self, event_type)(*args):
  File "start.py", line 170, in on_touch_up
    return super(MTMenu, self).on_touch_up(touch)
  File "/home/r/code/pymt/master/pymt/ui/widgets/composed/kineticlist.py", line 441, in on_touch_up
    must_break = child.dispatch_event('on_touch_down', touch)
  File "/home/r/code/pymt/master/pymt/event.py", line 362, in dispatch_event
    if getattr(self, event_type)(*args):
  File "/home/r/code/pymt/master/pymt/ui/widgets/button.py", line 116, in on_touch_down
    self.dispatch_event('on_press', touch)
  File "/home/r/code/pymt/master/pymt/event.py", line 354, in dispatch_event
    if handler(*args):
  File "/home/r/code/pymt/master/pymt/utils.py", line 35, in call_fn
    return fn(*(cargs + fargs), **d)
  File "start.py", line 44, in action_launch_plugin
    menu.parent.add_widget(win)
AttributeError: 'NoneType' object has no attribute 'add_widget'
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
  File "/usr/lib/python2.6/threading.py", line 484, in run
  File "/usr/lib/python2.6/dist-packages/pygame/threads/__init__.py", line 201, in threadloop
  File "/usr/lib/python2.6/Queue.py", line 65, in task_done
  File "/usr/lib/python2.6/threading.py", line 291, in notifyAll
<type 'exceptions.TypeError'>: 'NoneType' object is not callable

Jul 22, 2010
Project Member #1 txprog
(No comment was entered for this change.)
Status: Accepted
Labels: Milestone-0.5
Jul 22, 2010
Project Member #2 txprog
Closed via GitHub: http://github.com/tito/pymt/commit/f54b77008cd8e4777d624caa09ed1847de8c12b5

desktop: fix crash with usage of second touch + disapear menu (fixes  issue 283 )
Status: Done