Hi all. I started python and pygtk recently (a few weeks).
For that I used Python 2.7 documentation http://docs.python.org/ python GTK2.0 tutorial http://pygtk.org/pygtk2tutorial/index.html Then, I decided to switch to pygobject. Two reasons for that : * The advice on pygtk.org : "New users wishing to develop Python applications using GTK+ are recommended to use the GObject-Introspection features available in PyGObject." * The fact that glade, that I wanted to use as well, now (from version 3.10) only supports GTK3 (or so I understand). The resources I use are now referenced here : https://live.gnome.org/PyGObject * The tutorial : http://readthedocs.org/docs/python-gtk-3-tutorial/en/latest/index.html * A partial doc I don't really use : http://people.gnome.org/~johnp/girdocsalpha/Gtk/ * Examples I just discovered : http://developer.gnome.org/gnome-devel-demos/stable/ The most annoying is that I often find myself having to deal with the GTK3 reference manual : http://developer.gnome.org/gtk3/stable/ and guess what the python code corresponding to the C code can be. Some adaptations are trivial, like from void gtk_window_set_title (GtkWindow *window, const gchar *title); to Gtk.Window.window.set_title(string) But it is sometimes hard to just guess the name of python constants from C constants. Like from GTK_WINDOW_POPUP to Gtk.WindowType.POPUP, for instance. Is there any document indicating generic recipes to do the translation, or do I just need to pull my hair a little more time until I can "feel" that ? Is there any other document I could use ? Was GTK3 actually too bleeding edge for a beginner ? More generally, what approach would you suggest ? Thanks for your feedback. -- Jérôme _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
