O'Reilly logo

Tkinter GUI Programming by Example by David Love

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a Thread to our ChatWindow

To get our ChatWindow class listening for new messages, we will use a thread to repeatedly poll our web service for messages which we haven't seen yet.

In order to determine what we have and have not already received, we will be using the date_sent column in our conversation table.

Before we can implement a threaded solution, some modifications need to be made to our database, server, and requester.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required