On Wed, Nov 19, 2014 at 5:15 AM, Juan Christian <juan0christ...@gmail.com> wrote: > > Thanks, it's working. What would be a "professional" approach if I want to > constantly call a URL to get it's content and access this data within the > GUI? >
"Constantly" doesn't make much sense when you're talking about network operations. There are two basic approaches: either you re-fetch periodically and update the GUI (in which case you have to decide how frequently), or you re-fetch on some trigger (when it's changed, or when the user's about to need it, or something). Either way, you have to balance network traffic versus promptness of update, and it's nearly impossible to pick perfectly. But if you don't mind it being a little clunky, you should be able to pick something fairly simple and deploy it, and then maybe refine it a bit afterward. ChrisA -- https://mail.python.org/mailman/listinfo/python-list