[ accidentally pressed send before composing all of the message :( ]

I have uploaded a new version of PyGTK.  This version contains bug fixes
and some new features for the tree view wrapper.  It should be safe as a
drop in replacement for 1.99.11 (no API breakage).  Here is a summary of
the new features:

    * script extracts some documentation from .tmpl files, to
      give more complete fake documentation.
    * set tp_alloc and tp_new slots on objects at module initialisation,
      to get round structure initialiser bug in Microsoft's C compiler.
    * fix up small bug in GdkRectangle handling
    * fix up the export-symbols regex used for the libglade module so
      that the module will work on platforms where libtool's
      -export-symbols-regex argument actually works.
    * Add gtk.GenericCellRenderer object that allows implementation of
      new cell renderers for gtk.TreeView in Python.
    * Add "simple" tree model manipulation APIs.  These are not yet
      complete, but they allow a number of nice ways of manipulating
      tree models:
           model = gtk.TreeStore(str, str, int)
           iter = model.append(None) # append a node to the tree
           model[0][0] = 'foo'   # set the first column of the fist
                                 # node in the tree.
           print model[0][0]
           iter2 = model.append(iter)
           model[0,0][0] = 'bar' # first child of first node in model.
           for row in model:
               print row[0] # iterate over toplevel nodes
               for subrow in row.iterchildren():
                   print subrow[0] # iterate over children of row

The new release is available from:


Email: james daa com au | 2003 Call for Papers out
WWW: |

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]