I've uploaded a new version of the Python bindings for GtkExtra. GtkExtra is a set of widgets for the Gimp Toolkit. It provides a spreadsheet-like matrix widget, widgets for 2-D and 3-D graphing and several other widgets. GtkExtra's home page is located at http://gtkextra.sourceforge.net/. The Python bindings for GtkExtra are available at http://home.pages.de/~voegele/gtkextra.html This version requires gtk+extra-0.99.12 and Numerical Python. Numerical Python, which can be found at http://numpy.sourceforge.net/, is no longer optional. A lot of things have changed and may break existing programs: * All datasets have to be added to a GtkPlot in the following way: data = GtkPlotData() plot.add_data(data) The other ways of calling GtkPlot.add_data() will be removed in the next release. * GtkPlotData is now a GtkWidget subclass that has to be managed with show(). Data sets are currently still displayed if show() is not called but don't rely on this feature; IMHO it's a bug in GtkExtra. * GtkPlotData.set_symbol() does now get the border color as an additional argument, and the tuple returned by GtkPlotData.get_symbol() does now contain the border color as an additional item. * Added PLOT_SYMBOL_RIGHT_TRIANGLE, PLOT_SYMBOL_LEFT_TRIANGLE, PLOT_SYMBOL_DOT and removed GTK_PLOT_SYMBOL_BAR. Use the new GtkPlotBar object instead of GTK_PLOT_SYMBOL_BAR. * Removed GtkPlotText.get_size() and get_area(). * GtkPlot.paint() does no longer get an argument. * Removed GtkPlot.set_transparent(). Use GtkPlot.plot_set_flags() and plot_unset_flags() with the flag PLOT_TRANSPARENT instead. * Added PLOT_AXIS_X, PLOT_AXIS_Y, PLOT_AXIS_Z. These constants replace ORIENTATION_HORIZONTAL and ORIENTATION_VERTICAL in several plot methods. * Added GtkPlotCanvas.paint(). Call this function before GtkPlotCanvas.refresh(). * Removed GtkPlotCanvas.set_can_select(), set_can_select_item(), set_can_select_point(), set_can_dnd() and set_can_dnd_point(), Use GtkPlotCanvas.plot_canvas_set_flags() and plot_canvas_unset_flags() with the flags PLOT_CANVAS_CAN_SELECT, PLOT_CANVAS_CAN_SELECT_ITEM, PLOT_CANVAS_CAN_SELECT_POINT, PLOT_CANVAS_CAN_DND and PLOT_CANVAS_CAN_DND_POINT instead. You can also use PLOT_CANVAS_DND_FLAGS. * Replaced PLOT_LABEL_LEFT, PLOT_LABEL_RIGHT, PLOT_LABEL_TOP, PLOT_LABEL_BOTTOM with PLOT_LABEL_IN, PLOT_LABEL_OUT. * Replaced PLOT_TICKS_LEFT, PLOT_TICKS_RIGHT, PLOT_TICKS_UP, PLOT_TICKS_DOWN with PLOT_TICKS_IN, PLOT_TICKS_OUT. * Renamed the keyword argument cols to columns in GtkSheet.__init__() and GtkColorCombo.__init__(). * Removed GtkSheet.set_auto_resize() and set_auto_scroll(). Use GtkSheet.sheet_set_flags() and sheet_unset_flags() with the flags SHEET_AUTO_RESIZE and SHEET_AUTO_SCROLL instead. * An AttributeError is raised if the row or column attribute of a GtkSheetChild that is not attached to a GtkSheet cell is accessed. Previous versions of the Python bindings used to return None. The following types and methods are new: * Added the GtkPlot subclasses GtkPlotPolar and GtkPlot3D. * GtkPlotData has several new methods. * Added the GtkPlotData subclasses GtkPlotBar, GtkPlotBox, GtkPlotFlux, GtkPlotSurface and GtkPlotCSurface. See the example programs for more information. * Added the GtkPlotLine type. This type has three attributes called line_style, line_width and color and also behaves somewhat like a list with three items. * Added GtkPlot.draw_line() and draw_text(). * Added GtkPlot.set_line_attributes() and get_line_attributes(). Both functions use the GtkPlotLine type. * GtkPlot.add_function() now accepts a Python CObject with a pointer to a plot function written in C. * Added the flags PLOT_GRADIENT_H, PLOT_GRADIENT_V, PLOT_GRADIENT_S. They are used by GtkPlotData.gradient_set_mask() and gradient_get_mask(). * Added GtkSheet.column_label_set_visibility() and columns_labels_set_visibility(). I've started to add parts of the GtkAda documentation to gtkextra.py but the documentation is still not complete and contains mistakes. _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
