예제 #1
0
 def __init__(self):
     prompt = 'Opción'
     opciones = ['Editar personajes',
                 'Agregar lineas de diálogo',
                 'Editar conexiones',
                 'Salir']
     
     funcs = [lambda:pop_menu('MenuPersonajes'),
              self.add_diag_line,
              self.edit_conx,
              self.exit]
     
     super().__init__(prompt,opciones,funcs)
     self.diag = dialogo()
     self.nombre = 'MenuInicial'
예제 #2
0
from globs import Globals as g, pop_menu
import os

pop_menu('MenuInicial')

running = True
while running:
    os.system(['clear','cls'][os.name == 'nt'])
    
    running = g.menu_actual.update()
예제 #3
0
 def exit(self):
     pop_menu(g.menu_previo)