Hi Anthony,

Le 28/06/2012 16:49, Anthony Scaife a écrit :
>     from gi.repository import Gtk, Gdk
>     import gui
> 
>     and uses: Gtk.UIManager

This is a GTK 3 application. You'll find a tutorial here:
http://python-gtk-3-tutorial.readthedocs.org/en/latest/index.html

More info on the wiki:
https://live.gnome.org/PyGObject

GTK 3 apps use pyGObject. The "gi" stands for the former name of the
development that lead to this state of things: GObject Introspection.
This work has been done to be able to generate bindings in a more
automated way, instead of maintaing them by hand (like the old pyGTK
binding).

>     import pygtk
>     pygtk.require('2.0')
>     import gtk
> 
>     and uses: gtk.Window(gtk.WINDOW_TOPLEVEL)
>     and uses gtk.TreeStore(str)

This is a GTK 2 application. These apps use pyGTK:
https://live.gnome.org/PyGTK

If you're writing a new app, you should write it for GTK3, using pyGObject.

Cheers,
--
Luis Menina
_______________________________________________
gnome-love mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnome-love

Reply via email to