X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/3e797d5e792af787f3a0d6c2568ca7d728e43860..5552879516ba6ae3139d3317ae17ca53540ba74b:/gui/gui.c?ds=sidebyside diff --git a/gui/gui.c b/gui/gui.c index 8d1da94..f1a8a21 100644 --- a/gui/gui.c +++ b/gui/gui.c @@ -51,9 +51,9 @@ int main(int argc, char *argv[]) /* Creo el formulario */ form = form_crear(mainwin); - form_agregar_widget(form, INPUT, "Nombre", 15); - form_agregar_widget(form, INPUT, "Padron", 5); - form_agregar_widget(form, INPUT, "Datos", 30); + form_agregar_widget(form, INPUT, "Nombre", 15, ""); + form_agregar_widget(form, RADIO, "Voto", 2, "Si,No"); + form_agregar_widget(form, INPUT, "Datos", 30, ""); form_ejecutar(form, 10, 10); @@ -64,11 +64,13 @@ int main(int argc, char *argv[]) /* Imprimo los datos! */ printf("Datos Ingresados : \n"); printf("\tNombre : %s\n", form_obtener_valor(form, "Nombre")); - printf("\tPadron : %s\n", form_obtener_valor(form, "Padron")); + printf("\tVoto : %s\n", form_obtener_valor(form, "Voto")); printf("\tDatos : %s\n", form_obtener_valor(form, "Datos")); /* Libero el formulario */ form_destruir(form); + + MD_Listar(); return 0; }