Drive modes

Does anybody know how to switch between the arcade drive mode and tank drive. Preferably in C++ and blocks but python would work as well.

Do you want it to switch between drive modes during the match?
If so, this may help: Button pressed, switch to tank drive won't work - #5 by weilin