major improvements

This commit is contained in:
2025-04-04 22:19:27 +08:00
parent 551ed9a4ce
commit bce75a1727
17 changed files with 158 additions and 208 deletions

Binary file not shown.

16
pulsar/layouts.yaml Normal file
View File

@@ -0,0 +1,16 @@
horizontal_indicator:
- type: line
args:
ends: [(0.4, 0.5), (0.6, 0.5)]
color: green
- type: line
name: remote
args:
ends: [(0.4, 0.5), (0.6, 0.5)]
color: green
- type: line
status: static
args:
ends: [(0.4, 0.5), (0.6, 0.5)]
color: green

25
pulsar/main.py Normal file
View File

@@ -0,0 +1,25 @@
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()

1
pulsar/vgl Symbolic link
View File

@@ -0,0 +1 @@
/home/ajax/Documents/Index/302A/vgl