AiraPulsar/pulsar/main.py
2025-04-04 22:19:27 +08:00

25 lines
730 B
Python

import vgl
import time
window = None
def horizontal_indicator():
global window
frame = vgl.Frame().attach(window, (0, 0), "Horizontal Indicator")
vgl.elements.Line(ends=[(0.4, 0.5), (0.6, 0.5)], color="green").attach(frame)
pass
def console():
print("You've entered Pulsar's command console, an embbedded Python interpreter for debugging & testing")
while True:
try:
exec(input(">>> "))
except:
print("An error caused & captured")
if __name__ == '__main__':
print("Welcome to AiraPulsar Client")
window = vgl.Window(title="Pulsar", size=(1600, 800))
window.start()
horizontal_indicator()
#console()
time.sleep(3)
window.kill()
exit()