Updating tkinter labels in python?

You could use callbacks on the server instance. Install a callback that updates the label whenever the user-list changes.

You could use callbacks on the server instance. Install a callback that updates the label whenever the user-list changes. If you can't change the server code, you would need to poll the list for updates every few seconds.

You could use the Tkinter event system to keep track of the updates. Def user_updater(self): self. User_updater_id = self.

User_label. After(1000, self. User_updater) lines = for user in self.server.

Users: lines. Append(user) self. User_label"text" = "\n".

Join(lines) def stop_user_updater(self): self. User_label. After_cancel(self.

User_updater_id).

I may have misunderstood your problem but ... v = StringVar() l = Label(root, textvariable = v).pack() v. Set('new text') the value of l may be changed as need by using set on the stringvariable Please see New Mexico Tech Tkinter reference: infohost.nmt.edu/tcc/help/pubs/tkinter/c....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions