le Mon, 02 Jan 2006 09:22:26 -0500, Gary Jaffe écrivait : 

> I wrote a pygtk application that displays ascii letters and
> spaces arranged as 70 columns by 20 rows.  Each letter and its
> background color represents a potential appointment spot in a
> doctor's office.  The user can click on any of the letters to
> either make or view an appointment. This is working, but is too
> slow.  It takes about a second to redraw the letters, even when
> using pyrex or psyco.
> 
> I implemented this by using an EventBox() for each letter (to
> catch the clicks) and then added a label to each EventBox() to
> display the letter with its background color.  I'm considering
> using a TextView() instead to display the letters and managing
> the letters with pango.
> 
> Is this likely to be faster, or is there some other way of
> implementing this that would be faster?
> 

could'nt gtk.Buttons() do the job ? (not sure it will speed up
your app but...)

> Thanks for any assistance.

HTH

nicolas

> 
> Gary
> _______________________________________________
> pygtk mailing list   [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/




-- 
Nicolas ROMAN          Ingénieur Intégration/Développement Aliacom
http://www.aliacom.fr                     [EMAIL PROTECTED]
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to