Python activity

19 views
Skip to first unread message

Jody Crothers

unread,
Feb 2, 2026, 7:36:40 PM (9 days ago) Feb 2
to TI IT list
Hi Everyone,

I am running a data gathering activity using python. Program attached.


After in runs I get the final location of the turtle.
I would love to just have a button to press to run it agagin instantly
Rather than press enter and Crtl R.
Any suggestions to make this possible?



Jody Crothers


jodstar.com

CentralLimitTheorem.tns

John Hanna

unread,
Feb 6, 2026, 8:24:56 PM (5 days ago) Feb 6
to TI IT list
Had a look at the code:
  • Make that get_key(1)
  • Hide the turtle - it slows down the display
  • Fix the graphics display t.write()
  • Eliminate the print statements. Use draw_text()
    • Note that turtle graphics is a ti_draw extension.

Regards,
    John

From: tins...@googlegroups.com <tins...@googlegroups.com> on behalf of Jody Crothers <jodst...@hotmail.com>
Sent: Monday, February 2, 2026 7:36 PM
To: TI IT list <tins...@googlegroups.com>
Subject: [tinspire] Python activity
 
--
--
To post to this group, send email to tins...@googlegroups.com
Unsubscribe by sending an email to tinspire+u...@googlegroups.com
The tns documents shared by group members are archived at
https://sites.google.com/site/tinspiregroup/tns-files
---
You received this message because you are subscribed to the Google Groups "tinspire" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinspire+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tinspire/SL2P216MB2239E2A2780B845B91EB0EECB89BA%40SL2P216MB2239.KORP216.PROD.OUTLOOK.COM.

John Hanna

unread,
Feb 6, 2026, 8:24:57 PM (5 days ago) Feb 6
to TI IT list
Have not seen the code yet.

First thought: put your entire program in a while get_key()!='esc': loop to rerun when pressing any key but [esc].

See attached for some examples (not all programs do this, but if the top of the screen says 'Running' and nothing is happening, press a key). 

Regards,
    John

From: tins...@googlegroups.com <tins...@googlegroups.com> on behalf of Jody Crothers <jodst...@hotmail.com>
Sent: Monday, February 2, 2026 7:36 PM
To: TI IT list <tins...@googlegroups.com>
Subject: [tinspire] Python activity
 
--
Rule 30 cellular automata.tns
Reply all
Reply to author
Forward
0 new messages