Python GTK AttributeError: 'gi.repository.Gtk' object has no attribute 'FlowBox'

Python GTK AttributeError: 'gi.repository.Gtk' object has no attribute 'FlowBox'

我正在关注 Python GTK3+ Tutorial to make some applications on Ubuntu. However, when I try to execute sample code given for FLowBox,结果出现以下错误:

AttributeError: 'gi.repository.Gtk' object has no attribute 'FlowBox'

我安装了 GTK3 (v3.10.8) 以及 Python 2.7.6 和 Python 3.4.0。

我正在使用 Ubuntu 14.04

我该怎么办?

GtkFlowBox was introduced in GTK+ 3.12. 您需要:a) 找到升级 GTK+ 软件包的方法(可能有一个 PPA;检查 Ubuntu GNOME 团队的 Launchpad),b) 升级到 Ubuntu 14.10,或 c) 参考旧版本的教程(我不知道如何找到它)。