Stuart B. wrote:
What exactly are you trying to do inside the while loop?
depending on what you are trying to do more than likely there is a way
to do it without the loop. I might be able to help if i know more about
what you are trying to do.
server = TCPServer.new(‘0.0.0.0’, 8080)
while (session = server.accept)
The while loop is for new connection and the Tk loop would be to show
Well the only thing I can think of is to incapsulate it inside a class
and initialize method like
#your tk code and while loop
that way everything gets read and the while loop won’t start till the
Tk.mainloop is called. This should work if you adapt it right,
Hope this helps.