My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 5: undefined variables preventing exiting the plugin
1 person starred this issue and may be notified of changes. Back to list
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()

Powered by Google Project Hosting