#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    81
    Rep Power
    12

    wxPython Question


    I am trying to dynamically populate a combolist from a site on the internet. The problem I am having is that the program does not wait for the content to be retrived from the website. What is the most correct solution for forcing the program to wait? Thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2004
    Location
    London, England
    Posts
    1,585
    Rep Power
    1373
    How are you retrieving the data from the web page?

    Are you retrieving a web page and parsing the data from the HTML, or are you using some other format such as XML, XML-RPC or SOAP?

    The normal way of retrieving a web page or other resource off of the net is to use urllib. If you use urllib.urlopen to create a file-like object, then call read or readlines on that object it should retrieve all the data before continuing.

    Dave - The Developers' Coach
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    81
    Rep Power
    12

    Ahhh


    Thanks I found a bug, it works now.

IMN logo majestic logo threadwatch logo seochat tools logo