学习使用GTK + 2或GTK + 3进行GUI编程吗? [英] Learning GUI programming with GTK+2 or GTK+3?

查看:145
本文介绍了学习使用GTK + 2或GTK + 3进行GUI编程吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是GUI编程的新手,但是我还没有找到最适合我的库(我想创建桌面环境应用程序,例如扩展坞,面板,办公桌等). 我已经开始学习GTK的基础知识,主要是使用PyGtk.我在线上找到的大多数教程都是针对GTK + 2.0的.但是,最近, GTK + 3已发布.所以我不确定这对我的学习曲线意味着什么:

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:

  • 我应该学习使用GTK + 3并忘记GTK + 2吗?
  • 从编码的角度来看,使用一个或另一个真的有区别吗?
  • 已经有GTK + 3的PyGTK绑定了吗?
  • 是否有适用于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 :)

推荐答案

绝对使用GTK3. http://developer.gnome.org/使用GTK 3,并且是使用多种语言(包括Python)进行GTK编程的出色入门.在接下来的几个月中,您可能会看到更多针对GTK 3的教程,与此同时,您仍然可以使大多数GTK 2教程以最少的麻烦工作.基础知识并没有什么不同.

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.

这篇关于学习使用GTK + 2或GTK + 3进行GUI编程吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆