If I have a list (PtList) of 100 items and I would like to somehow update
the list at a regular interval (1 second). Currently, I’m using a PtTimer
to trigger a redraw of the whole list. I’m sure there must be a
flicker-free way to do this. What key piece am I missing? Coming from an
ASCI text-based UI, there a lot of things we are learning the hard way in
Photon. Any GUI thoughts or helpful references will be appreciated.
Thanks,
Chris Southern
Chris Southern <csouthern@sprintmail.com> wrote:
If I have a list (PtList) of 100 items and I would like to somehow update
the list at a regular interval (1 second). Currently, I’m using a PtTimer
to trigger a redraw of the whole list. I’m sure there must be a
flicker-free way to do this. What key piece am I missing? Coming from an
ASCI text-based UI, there a lot of things we are learning the hard way in
Photon. Any GUI thoughts or helpful references will be appreciated.
If flicker is your problem, put your PtList inside a
PtDBContainer widget – it does redraws of all of its contents as
a single operation, rather than background then foreground
(which is what gives you the flicker).
I think there’s something further in the Programmer’s Guide
section on animation, too. Sorry not to be more specific, but
I’ve not been back into the 1.14 docs in a while, what with
Photon 2.0 course development… 
Norbert Black
QSSL Training Services