Compltly remade OpenWindow.py