Antoon Pardon wrote:
Well I'm still experimenting both with pygtk as well as with wxpython.

The following question I have about programming with a gui toolkit
however is independant of the toolkit used, so I put it to both
lists.

The next thing I would like to try is a program like life, mine sweeper,
or griddler (aka nonogramm or paint by number). Basically this kind
of program requires a table all with similar data. However this table
could become quite large so I am a bit hesistant in implementing this
as a gtk_table/GridSizer, filled with thousands of widgets.

Avoiding the use of thousands of widgets is always a good thing. They each have lots of overhead that you definitly don't need in this case.



An alternative would be to have just one widget in which I draw al elements as they should be, but this would be a little harder to code.

There is a good example of this approach in one of the wxWindows C++ demos. It easily deals with hundreds of thousands of cells. See http://cvs.wxwindows.org/viewcvs.cgi/wxWindows/demos/life/



-- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!


_______________________________________________ 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