def Button(val=None): try: if val != None: if isinstance(val, int): but = int(val) else: but = gv.getindex(val, butmenu.buttons, True) if but > -1: butmenu.nav(but, 4) return True return False except: return False
def main(): """Pone en marcha el programa""" menu.nav()