8

I am new to GUI programming, and I haven't found yet what library is best for my purpose (i want to make desktop environment applications, eg. docks, panels, desklets etc.) I have started learning basics of GTK, mainly using PyGtk. Most tutorials i found on line are for GTK+2.0. Recently however, GTK+3 has been released. So i am a bit unsure as to what that means for my learning curve:

  • Should i learn using GTK+3 and forget about GTK+2?
  • Does using one or the other really makes a difference from the point of view of coding?
  • Are there PyGTK bindings for GTK+3 already?
  • Is there any available tutorial for GTK+3?

Since i'm new to this, i'm throwing myself into it blindly, but a bit of guidance may be wiser. So if you have any, you're welcome :)

1
  • 3
    Vala [live.gnome.org/Vala] its a new and great language that is specially for GTK development.
    – lepe
    Dec 28, 2011 at 4:41

2 Answers 2

7

Definitely go with GTK 3. The 10-minute tutorials on http://developer.gnome.org/ use GTK 3 and are an excellent introduction to programming with GTK in several languages, including Python. In the coming months you will probably see more tutorials appear for GTK 3, and in the meantime, you will still be able to get most tutorials for GTK 2 to work with a minimum of fuss. The basics aren't all that different.

2
  • "PyGTK-2.24 will be the final major release of PyGTK ..." I'm really waiting and preparing for PyGTK 3.0 to start upgrading my programs...
    – saeedgnu
    May 10, 2011 at 5:45
  • 3
    @ilius, There will be no PyGTK 3.0. Its replacement, PyGI, is already out, so you can start upgrading!
    – ptomato
    May 10, 2011 at 7:49
2

Although late, I would like to share this information in the hope that it will be useful for anyone who have this doubt in future.

As ptomato said, GTK+ 3 is the way to go and much of the GTK+2 knowledge is applicable to GTK+3 also. PyGObject is the way to go with GTK+3, not PyGTK. See: PyGTK, GObject, and GNOME 3 to get an overall idea about this new change.

To know what differs and how to cope up with these changes, see:

About the tutorials, following ones will be of helpful:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.