Ejemplo n.º 1
0
def main():
    # Sirve para que se muestre mi icono en vez de el de python en la taskbar
    import ctypes
    myappid = u'CaponeraRomolo.TFG.QLearning.final'  # arbitrary string
    ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(
        myappid)  # Para que se muestre el icon en la task bar
    ctypes.windll.user32.ShowWindow(
        ctypes.windll.kernel32.GetConsoleWindow(),
        6)  # Para que se minimice la consola al iniciarlo
    # miedito me da lo que pueda hacer esto honestly

    c = Controlador()
    c.registrar_algoritmo(SoftMax)
    c.registrar_algoritmo(UpperConfidenceBound)
    c.start()
Ejemplo n.º 2
0
from weather import Tiempo
from VistaProvincia import ProvinciasView
from Controlador import Controlador
from Mprovincias import ManejaProvincia
from ObjectEncoder import ObjectEncoder
if __name__ == "__main__":
    encoder = ObjectEncoder()
    try: 
        aux=encoder.Leer("datos.json")
        aux=encoder.Decoder(aux)

    except FileNotFoundError:
        aux=ManejaProvincia()

    vista=ProvinciasView()
    control=Controlador(vista, aux)
    vista.setControlador(control)
    control.start()
    encoder.Guardar(control.salir(), "datos.json")