标签:图形界面 python gtk+ linux windows
PyGObject is a Python extension module that gives clean and consistent access to the entire GNOME software platform through the use of GObject Introspection. PyGObject provides full support of GObject Introspection and all of its features (callbacks, GVariant support, closures, sub-classing, etc.).
对于Linux平台,原文的安装介绍是:Recent versions of PyGObject and its dependencies are packaged by nearly all major Linux distributions. So, if you use Linux, you can probably get started by installing the package from the official repository for your distribution.
#!/usr/bin/python from gi.repository import Gtk #Simplest program win = Gtk.Window () win.connect ("delete-event",Gtk.main_quit) win.show_all () Gtk.main ()
到目前为止,开发环境搭建完成。
PyGObject笔记1——用Python写图形界面,布布扣,bubuko.com
标签:图形界面 python gtk+ linux windows
原文地址:http://blog.csdn.net/yueyawanbian/article/details/38259237