I am currently working on a Battleship game project (for learning purposes) that uses tkinter for the UI and, because I want this program to be able to run on two computers for multiplayer, twisted for data transfer. This is my first time using twisted however I have used tkinter many times.
I know both twisted and tkinter run in loops so it is normally not possible to have these running in the same thread. So I found out there's two ways to get around this: tksupport and running twisted's reactor in a separate thread.
However, I tried to import tksupport from twisted.internet but it said that it didn't exist. I checked my twisted folder in my site-packages to be sure and it is indeed not there, but even the twisted docs claim it is. I assuming that this is because I am running python 3.5 and tksupport hasn't been ported over yet, but If this is not the case, please let me know.
Also, as for the solution with threading, I discovered there's some controversy over putting twisted's reactor in it's own thread. Is it ok to put the reactor in its own thread, and, if so, what precautions should I take?
Thanks.
I currently have twisted 17.9.0 and python 3.6.
In reference to the answer above,
tksupport for python 3 is now available with twisted, so no need to create your own tksupport module.
Threading with Twisted with Tkinter