[pygtk] User defined interface

Preben Randhol randhol+pygtk at pvv.org
Sun Jun 4 16:36:06 WST 2006


Hi

First I'm new to Python and PyGTK, but I have used Gtk for some years
now. Currently I'm making an application with PyGTK. The application is
supposed to show some data that is read from an XML file. Now what I
need is to give the user the flexibility that she/he can set up how
she/he wants the display widget to look like. My idea is to use a table
widget as the base and that the user can put Labels, Pixmaps, and choose
where in the table to display the data (and later also be able to edit
data). 

So my question is: Given that the layout is defined in an XML file is it
better to:

   1. in some way (if possible) to use libglade to read a XML file that
      doesn't have a main window but only a Table widget as the base?
      As the layout will change depending on what data to display.
   
   2. make ones own parser to read and generate the display GUI from the
      XML structure. I'm also thinking that later when I want to add
      edit capabilities I need to hook callbacks to the different
      edit widgets and that may be easier without libglade

   3. or has somebody already made something like this that is available
      in as a library or similar?

The program will be licensed as GPL or BSD if finished.

Thanks in advanced for any hints.

Preben


More information about the pygtk mailing list