Thread: [Python-gtkextra-devel] Re: PyGtkExtra & Gtk2
Status: Beta
Brought to you by:
treeves
|
From: Peter K. <pet...@ij...> - 2002-01-12 11:10:50
|
Peter Kese wrote: > When browsing through the Online CVS archieve of your pygtk-extra, I > have seen some references (namely in ChangeLog) to PyGtk 1.99.6. > Does this mean that pygtk-extra also in some form works with > python2.2 / Gtk 2.0 / PyGtk 1.99.6 ? The Python bindings for GtkExtra use the new defs file format proposed for Gtk 2.0. Thus there are some references to PyGtk 1.99.6 in the ChangeLog. The gtkextra.defs file is converted into the old format before the C code for the bindings is generated though. > Anyway the real question is what is the status of > gtkextra/pygtk-extra and gtk 2.0? Can it be used with gtk 2.0? No, the bindings cannot be used with Gtk 2.0 since the GtkExtra library hasn't been ported to Gtk 2.0 yet. > How difficult / How much work? Since the Python bindings already use the new defs file format it should be easy to port the bindings to Gtk 2.0. But there are some problems with the GtkExtra library: - Currently the bindings support several signals that use GTK_TYPE_POINTER. The version for Gtk 2.0 won't support these signals. When I looked at the signal code in PyGtk 1.99.x some months ago it seemed to be impossible to support signals that use GTK_TYPE_POINTER. Gtk widgets shouldn't use GTK_TYPE_POINTER anyway. If the GtkExtra library isn't changed Python users won't be able to use the following signals in the future: GtkSheet - traverse GtkPlot - moved, resized, tick_label - Currently the GtkExtra library doesn't register the enumerations and flags that are defined in the library's header files as Gtk types. AFAIK enumerations, flags as well as other types must be registered properly when Gtk 2.0 and PyGtk 1.99.x are used. - If types like GtkIconListItem were subclasses of GObject it would be easier to write bindings for GtkExtra. BTW, I'm not very interested in Python and Gtk anymore. Python 1.5 is really great but I don't like most of the recent additions to the Python language. I'm also planning to switch to GNUstep and thus won't use Gtk anymore. I will maintain the Python bindings if nobody else takes them. But I'm not going to help porting GtkExtra to Gtk 2.0. If the issues mentioned above aren't resolved than the Python bindings won't support these features in the future. But you can help to port GtkExtra to Gtk 2.0 and make sure that the GtkExtra widgets work like the standard Gtk 2.0 widgets and that it will be easy to write bindings for GtkExtra. -- Bye, Andreas |
|
From: Peter K. <pet...@ij...> - 2002-01-12 11:16:39
|
Thanks for reply! I have posted that question because I am in a middle of a project where I could use some GtkExtra things, like notebooks and plots. I guess that for the moment I won't have enough time to dig into GtkExtra and Gtk 2.0 things so I may write some custom widgets or just port a small part of GtkExtra to Gtk 2.0. Thanks anyway and I hope you will enjoy GNUstep. I will stick to Python/Gtk as I find them very useful and like them more and more. Cheers, Peter |
|
From: Toby D. R. <to...@so...> - 2002-01-12 15:38:36
|
Hi, First, Andreas has done a great job with the bindings thus far. We now depend on them in a fairly large (75K lines) tool. He had in the past stated he wanted someone to help with them. I volunteered to help port to PyGtk2 when the GtkExtra moves there. We only use the Plotting widgets. I still plan on doing this. I have been very busy with little spare time and have not been following the latest developments in GtkExtra or PyGtk2 much. Andreas clearly has the best current knowledge of whats going on and what needs to change to support PyGtk2 if/when GtkExtra goes 2.0. If someone else could contribute, that would be EXCELLENT. We are commented to the Gtk/Python/PyGtk/GtkExtra/PyGtkExtra mix. It has been very productive for us. "We" means the company I work for and the government agency we contract with. I've not yet subscribed to the GtkExtra list, I think I will now. Toby Quoting Peter Kese <pet...@ij...>: > > Thanks for reply! > > I have posted that question because I am in a middle of a project > where I could use some GtkExtra things, like notebooks and plots. > > I guess that for the moment I won't have enough time to dig into > GtkExtra and Gtk 2.0 things so I may write some custom widgets > or just port a small part of GtkExtra to Gtk 2.0. > > Thanks anyway and I hope you will enjoy GNUstep. I will stick > to Python/Gtk as I find them very useful and like them more and > more. > > Cheers, > > Peter > > _______________________________________________ > Python-gtkextra-devel mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-gtkextra-devel > |
|
From: Joe V. A. <van...@at...> - 2002-07-09 13:26:36
|
Now that gtkextra works with Gtk2 (at least the CVS version), I'm interested in working with other developers to port python-gtkextra to gtkextra-2 and Gtk2. Is anyone else already working on this conversion? Any ideas on how much effort is involved or the best way to get started? In particular, what tools read the 'defs' files to generate interface code? -- Joe VanAndel National Center for Atmospheric Research http://www.atd.ucar.edu/~vanandel/ Internet: van...@uc... |
|
From: Toby D. R. <to...@so...> - 2002-07-09 13:49:02
|
Joe, I just this morning checked out and compiled gtkextra-2 from sf.net. I tagged the head of python-gtkextra with Release_0_22. The code generation stuff sits in codegen directory in pygtk source tree. I wrote the original h2def.py script that generates def files. On Red Hat 7.3 these are installed in /usr/share/pygtk/2.0/codegen from the RPM pygtk2-devel-1.99.8-7. I have not followed PyGtk2 development in depth for quite some time. I am today plundering through the 1.99.8 code base. If the code generation matured as was hoped early in the PyGtk2 development cycle, it should be quite easy to wrap the new gtkextra-2. On the other hand..... Toby - Quoting Joe Van Andel <van...@at...>: > Now that gtkextra works with Gtk2 (at least the CVS version), I'm > interested in working with other developers to port python-gtkextra to > gtkextra-2 and Gtk2. > > Is anyone else already working on this conversion? > > Any ideas on how much effort is involved or the best way to get started? > > In particular, what tools read the 'defs' files to generate interface code? > > -- > Joe VanAndel > National Center for Atmospheric Research > http://www.atd.ucar.edu/~vanandel/ > Internet: van...@uc... > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Stuff, things, and much much more. > http://thinkgeek.com/sf > _______________________________________________ > Python-gtkextra-devel mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-gtkextra-devel > |