I see a couple of problems, you define a bunch of functions to manipulate the menu but never call them. You also need something to loop over button events and move the cursor around/select menu items. Anyway put a call to your openmenu functionjust before the first def line and you should at least see something drawn.