You've already forked AiraPulsar
major improvements
This commit is contained in:
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()
|
||||
Reference in New Issue
Block a user