Skip to content

Commit

Permalink
Actualización launcher_esp.py
Browse files Browse the repository at this point in the history
Se agrega parte inicial del código de la herramienta lanzador en el lenguaje Python.
  • Loading branch information
ngdplnk committed Aug 30, 2023
1 parent a815b80 commit fc5c80f
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions python/launcher/launcher_esp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#LIMPIEZA DE PANTALLA
import os
def limpiar_consola():
if os.name == 'nt': #EN WINDOWS
os.system('cls')
else: #LINUX O MACOS
os.system('clear')

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

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

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

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

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

while True:
limpiar_consola()
print("Lanzador de Servidores para Minecraft")
print("-------------------------------------")
print("")
print("Menú Principal")
print("")
print("(1) Iniciar Servidor")
print("(2) Licencia")
print("(3) Salir")

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

if seleccion == "1":
ram()
elif seleccion == "2":
about()
elif seleccion == "3":
exiit()
elif seleccion == "4":
dbmode()

input()

0 comments on commit fc5c80f

Please sign in to comment.