Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81020

Re: How to access Qt components loaded from file?

References (1 earlier) <546B3FE4.3050204@telenet.be> <CAAp0bGuiJaU6jeK5uzwyhfax1tm5PBesxwByt-En5mU2v0+8Zg@mail.gmail.com> <CAAp0bGu5z-jPm4cgm1u1CfwQPpDqy9G1A3ciwmaaSJcCrBeSPA@mail.gmail.com> <546B6A4B.90107@telenet.be> <CAAp0bGttSSzLL_K_vzWRb+E+mAHdSYVk-8PSARFKG=JWJ4rMng@mail.gmail.com>
Date 2014-11-19 10:36 +1100
Subject Re: How to access Qt components loaded from file?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.15985.1416353804.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Nov 19, 2014 at 5:15 AM, Juan Christian
<juan0christian@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How to access Qt components loaded from file? Chris Angelico <rosuav@gmail.com> - 2014-11-19 10:36 +1100

csiph-web