You've already forked AiraPulsar
major improvements
This commit is contained in:
BIN
pulsar/__pycache__/main.cpython-312.pyc
Normal file
BIN
pulsar/__pycache__/main.cpython-312.pyc
Normal file
Binary file not shown.
16
pulsar/layouts.yaml
Normal file
16
pulsar/layouts.yaml
Normal 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
25
pulsar/main.py
Normal 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
1
pulsar/vgl
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/ajax/Documents/Index/302A/vgl
|
Reference in New Issue
Block a user