私は GUI Python プログラムを設計しており、GTK+3 を使用することにしました。
ここでいくつかのドキュメントを読む: http://python-gtk-3-tutorial.readthedocs.org/en/latest/index.html gi.repository.Gtk モジュールを API として GTK+3 ライブラリに使用できることを知っています。
しかし、そうしようとしている間、GTK+2 モジュールを使用していることを警告し続けます。
>>> import gi.repository.Gtk
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:47: RuntimeWarning:
You have imported the Gtk 2.0 module. Because Gtk 2.0 was not designed
for use with introspection some of the interfaces and API will fail.
As such this is not supported by the pygobject development team and
we encourage you to port your app to Gtk 3 or greater. PyGTK is the
recomended python module to use with Gtk 2.0
warnings.warn(warn_msg, RuntimeWarning)
この問題を解決する方法がわかりませんでした... どうすれば本当に GTK+3 を使用できるようになるのでしょうか?