Post Reply 
More Python Questions!
04-21-2021, 12:56 AM
Post: #1
More Python Questions!
Is there a way to pause the program at the end? wait doesn't work.

Also is there a way to access the system clock or at least access a timer? ticks doesn't work either and the time Python library isn't included.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
04-21-2021, 06:28 AM (This post was last modified: 04-21-2021 06:28 AM by critor.)
Post: #2
RE: More Python Questions!
You can use HPPPL and CAS functions through hpprime.eval().

So yes :
Code:
import hpprime
hpprime.eval("wait()")
hpprime.eval("ticks()")
Find all posts by this user
Quote this message in a reply
04-21-2021, 07:10 AM
Post: #3
RE: More Python Questions!
(04-21-2021 06:28 AM)critor Wrote:  You can use HPPPL and CAS functions through hpprime.eval().

So yes :
Code:
import hpprime
hpprime.eval("wait()")
hpprime.eval("ticks()")

Excellent. This will solve all my Python problems although I hope they'll add more native Python libraries. Thanks!

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)