HP Forums
More Python Questions! - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: More Python Questions! (/thread-16709.html)



More Python Questions! - toml_12953 - 04-21-2021 12:56 AM

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.


RE: More Python Questions! - critor - 04-21-2021 06:28 AM

You can use HPPPL and CAS functions through hpprime.eval().

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



RE: More Python Questions! - toml_12953 - 04-21-2021 07:10 AM

(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!