Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 455237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:21:02+00:00 2026-05-12T22:21:02+00:00

I have a chat client that continuously polls a server and fetches new messages.

  • 0

I have a chat client that continuously polls a server and fetches new messages.

From my def __init__() I have:

wx.CallAfter(self.pollServer)

Which is defined:

def pollServer(self):
    t = self.updateMessages()
    time.sleep(5)
    self.pollServer()

Now printing the messages into the Terminal shows that it works but the GUI is ‘frozen’ instead of being continuously refreshed and I thought CallAfter takes care of that. Could you help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:21:02+00:00Added an answer on May 12, 2026 at 10:21 pm

    instead of

    time.sleep(5)
    self.pollServer()
    

    try with

    wx.CallLater(5,self.pollServer)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed a Flash based chat client that displays messages posted by users
I have a multi-threaded server that handles client requests, and makes new threads for
I'm building a chat server with .NET. I have tried opening about 2000 client
I have a simple chat client set up that allows users to login with
I am working on a chat client app that connects to a chat server.
For a school assignment we have to make a client server chat program in
I have been working on a (relatively) simple tcp client/server chat program for my
I have heard that web-based chat clients tend to use networking frameworks such as
I have a client interested in a real time chat application for a SharePoint
I have a WCF chat service that accepts duplex tcp connections. A single duplex

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.