[Tutor] Revving up Tkinter/PMW

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Fri, 29 Mar 2002 14:25:41 -0800 (PST)


On Tue, 26 Mar 2002, Isaac Hall wrote:

> hi tutors, gurus, and newbies alike!
>
> I have a question that has been eating at my sould for the past few
> weeks (well, not quite eating, maybe sipping?).  Anyway, Im building a
> rather large monitoring application that is supposed to take in a rather
> large ammount of data (~10,000 objects....scalers, histograms, circular
> buffers(ie, pie charts), and bitmasks) and display them graphically, and
> to be updated somewhere on the order of once every 5 to 10 seconds.
> Anyway, Ive been working on this rather on and off for the past few
> months and learning python (and SWIG) as I go, so I don't feel like Im
> fully aware of many of the methods available for creating faster
> graphics in python/Tkinter/PMW, and I haven't seen much in the way of
> books and such that help in this area.  Currently, the graphics are
> displayed in a multi-layered(tabbed) PMW notebook, and I was wondering
> this:
>
> Is there any way to make the thing only update the page that is being
> viewed?

Has anyone responded to your question yet?

Fredrik Lundh (effbot) has been working on revamping Tkinter to make it
faster:

    http://effbot.org/tkinter/index.htm

so you may want to try Tkinter 3000 to see if it helps performance any.
The technique you're thinking of is "double buffering", but I haven't been
able to pull anything in about it from Google yet.