Skip to content

Commit

Permalink
Update launcher_esp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ngdplnk committed Aug 30, 2023
1 parent fc5c80f commit 152f61e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions python/launcher/launcher_esp.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
#LIMPIEZA DE PANTALLA
import os
def limpiar_consola():
if os.name == 'nt': #EN WINDOWS
if os.name == 'nt': #WINDOWS
os.system('cls')
else: #LINUX O MACOS
os.system('clear')

#CAMBIO DE NOMBRE DE VENTANA
import sys
if sys.platform.startswith('win32'):
if sys.platform.startswith('win32'): #WINDOWS
import ctypes
ctypes.windll.kernel32.SetConsoleTitleW("Lanzador de Servidores para Minecraft")
elif sys.platform.startswith('linux') or sys.platform.startswith('darwin'):
elif sys.platform.startswith('linux') or sys.platform.startswith('darwin'): #LINUX O MACOS
sys.stdout.write(f"\x1b]2;Lanzador de Servidores para Minecraft\x07")

#BLOQUES DE CÓDIGO
def ram():
print("Seleccionaste ")
limpiar_consola()
#CÓDIGO AQUÍ

def about():
print("Opción 2 seleccionada")
limpiar_consola()
#CÓDIGO AQUÍ

def exiit():
print("Opción 3 seleccionada")
limpiar_consola()
#CÓDIGO AQUÍ

def dbmode():
print("asdasd")
limpiar_consola()
#CÓDIGO AQUÍ

while True:
Expand All @@ -41,6 +41,7 @@ def dbmode():
print("(1) Iniciar Servidor")
print("(2) Licencia")
print("(3) Salir")
print("")

seleccion = input("Selecciona una opción= ")

Expand Down

0 comments on commit 152f61e

Please sign in to comment.