Created
June 25, 2023 05:46
-
-
Save JajoScript/d736ee3aa1e14b00a0cf28f60f72c5b1 to your computer and use it in GitHub Desktop.
Clases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#*-- 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() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment