Skip to content

Instantly share code, notes, and snippets.

@JajoScript
Created June 25, 2023 05:46
Show Gist options
  • Select an option

  • Save JajoScript/d736ee3aa1e14b00a0cf28f60f72c5b1 to your computer and use it in GitHub Desktop.

Select an option

Save JajoScript/d736ee3aa1e14b00a0cf28f60f72c5b1 to your computer and use it in GitHub Desktop.

Revisions

  1. JajoScript created this gist Jun 25, 2023.
    56 changes: 56 additions & 0 deletions main.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,56 @@
    #*-- Autores.
    # Javier Farias
    # Vicente Abarca
    # Karen Cifuentes

    #*-- Dependencias.
    import os
    import pandas as pd
    import matplotlib.pyplot as plt

    #*-- Definición de clases.
    class ControladorArchivos():
    # Propiedades.
    # Constructor.
    def __init__(self) -> None:
    pass

    # Metodos.
    # Getters & Setters.


    class Pantalla():
    # Propiedades.
    # Constructor.
    def __init__(self) -> None:
    pass

    # Metodos.
    def __mostrar_opciones(self) -> None:
    print("[1] Opcion, Hola mundo")
    print("[2] Opcion, Adios mundo")
    print("[4] Salir.")

    def ejecutar_menu(self) -> None:
    while (True):
    # Limpiar y mostrar opciones.
    self.__limpiar_consola()
    self.__mostrar_opciones()
    opcion = input("[] Ingrese una opción: ")

    if (opcion == "4"):
    print("[!] Saliendo del programa...")
    exit(0)

    def __limpiar_consola(self) -> None:
    os.system('cls' if os.name == 'nt' else 'clear')

    # Getters & Setters.


    #*-- Inicio del programa.
    if (__name__ == "__main__"):
    # Mostrar resultados del programa.
    pantalla = Pantalla()
    pantalla.ejecutar_menu()