Skip to Content
Tkinter GUI Programming by Example
book

Tkinter GUI Programming by Example

by David Love
April 2018
Beginner content levelBeginner
340 pages
7h 54m
English
Packt Publishing
Content preview from Tkinter GUI Programming by Example

Connecting our ChatWindow

The first thing to do with our ChatWindow is allow it to receive the username variable:

class ChatWindow(tk.Toplevel):    def __init__(self, master, friend_name, friend_username, friend_avatar, **kwargs):        ...        self.friend_username = friend_username

You may be wondering why we need this variable here. The reason we will be requiring it is to help keep track of the conversation history.

There will be a separate database holding conversations between you and each individual friend, to make for very easy retrieval of the conversation history. This will, of course, require changes to our web service and, of course, our Requester will need to be updated too.

Let's begin with the necessary server adjustments to facilitate the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Tkinter GUI Application Development Blueprints, Second Edition - Second Edition

Tkinter GUI Application Development Blueprints, Second Edition - Second Edition

Bhaskar Chaudhary

Publisher Resources

ISBN: 9781788627481Supplemental Content