Re: gtk or pygtk



On Thu, 2007-06-14 at 15:44 -0300, Alexandre Moreira wrote:

> Exactly. If you can keep up with the weird syntax and understand what
> is going on with pointer-intensive C code, I guess you'll do pretty
> well with C Gtk+. I like it better than other bindings, but that is a
> matter of taste.
> 
> I believe you should check other options too, Gtkmm seems to be pretty
> good for C++ programmers and I heard good things of Gtk# if you don't
> mind using the Mono runtime.
> 
> That said, keep in mind that the amount of code needed to write basic
> stuff in C Gtk+ is pretty big, so you would be happy to write or have
> a few boiler-plate generator scripts (take a look at GOB2 and spuug).


libglade is very nice to reduce boiler-plate C code.  Actually I use
libglade in all my languages, which right now are C, C++, Python, and
C#.

If you want to make your own gobject-based class files, either for your
own purposes or to extend a Gtk Widget, GOB2 is nice.  Another thing to
check out is vala[1].  vala is getting more and more useful at building
Gobject-based code using a language that's very much like c#, but
compiles directly to C code, allowing your classes to be trivially
wrapped and used in any language that has GTK bindings.

Python's GTK bindings make it very easy to extend an existing GTK class,
but you can't typically use the extended classes outside of python.
Well that's not completely true.  Using the python C extension API, you
can easily use the classes from C or C++, but it's not quite the same
thing as what vala does.

Michael

[1] http://live.gnome.org/Vala

> 
> Regards,
> Alexandre Moreira.
> 
> >
> > >
> > >
> > > thanks
> >
> > _______________________________________________
> > gtk-list mailing list
> > gtk-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtk-list
> >
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 




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