Issue 5: undefined variables preventing exiting the plugin
Status:  New
Owner: ----
Reported by adrian.a...@gmail.com, Dec 23, 2011
When I try to exit, I get errors saying that 'buttonCode' is not defined.

The fix is to update gui.py's onAction methods:

updated version:

    def onAction( self, action ):
        count = self.getControl ( LIST ).size()
        pos = self.getControl( LIST ).getSelectedPosition()
        if (pos==count-1):
            self.getTimeline()
        if(action.getButtonCode() == KEY_BUTTON_BACK or action.getButtonCode() == KEY_KEYBOARD_ESC):
            self.close()

def onAction( self, action ):
    if (action.getButtonCode() == KEY_BUTTON_BACK or action.getButtonCode() == KEY_KEYBOARD_ESC):
        self.close()