Changeset 157


Ignore:
Timestamp:
04/24/2012 07:03:36 PM (3 years ago)
Author:
kvigue
Message:
 
Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/eventhandler.py

    r139 r157  
    120120                sys.exit()
    121121            elif self.dest != None: #Mode on from Input
    122                 globalVars.menuHandler.pageLibrary[
    123                     globalVars.menuHandler.currentPage].registerScore()
     122                if self.dest == "scorePage":
     123                    globalVars.menuHandler.pageLibrary[
     124                        globalVars.menuHandler.currentPage].registerScore()
    124125                # Reset keyboard-selected button
    125126                globalVars.menuHandler.currentPage = self.dest
  • src/menu.py

    r137 r157  
    7070        submitButton = MenuButton(BBUILDER.BUTTON_0, (400,400),
    7171                                (200,50), "Submit!", "scorePage")
    72         enterName = InputScorePage(page0cursor, [submitButton], [])
     72        cancelButton = MenuButton(BBUILDER.BUTTON_0, (400,465),
     73                                (200,50), "Cancel", "page0")
     74        enterName = InputScorePage(page0cursor, [submitButton, cancelButton], [])
    7375       
    7476        self.pageLibrary['page0'] = page0
Note: See TracChangeset for help on using the changeset viewer.