Forum Archive

Running a socket together with scene

OTPSkipper

I am writing an app that receives data over a tcp socket and displays the data graphically with some user interaction too.

I can't just call "run" for scene support because I need to poll the socket too.

Will threads work?

ccc

https://github.com/cclauss/Pythonista_scene/blob/master/remote_control_scene.py

OTPSkipper

Thanks. That is working for me.