def callFunction(s): if (s == "standardButton"): Menu.buttonStandardBoard() elif (s == "customButton"): Menu.buttonCustomBoard() elif (s == "white"): Menu.buttonCustomPiece("W") elif (s == "black"): Menu.buttonCustomPiece("B") elif (s == "kingwhite"): Menu.buttonCustomPiece("KW") elif (s == "kingblack"): Menu.buttonCustomPiece("KB") elif (s == "blank"): Menu.buttonCustomPiece("BLANK") elif (s == "finish"): Menu.buttonCustomFinish() elif (s == "saveButton"): Menu.saveButton() elif (s == "loadButton"): Menu.loadButton() elif (s == "menuButton"): Menu.buttonMainMenu()