google-code-export / simple-pygame-gui

Automatically exported from code.google.com/p/simple-pygame-gui
1 stars 1 forks source link

[patch] manually calling ListBox.moveUp/moveDown outside of update() should cause onItemSelected callback to be called #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using my own joystick event handling to scroll through a listbox and
this mostly worked fine by calling moveUp/moveDown, except that the
onItemSelected callback did not get called.  The fix is for the ListBox to
keep track of the selectedIndex from its last call to update(), via an
extra instance attribute called lastSelectedIndex.

Original issue reported on code.google.com by mackst...@gmail.com on 2 Oct 2008 at 12:15

Attachments: