Getting Started
File:simple_example.py
Let me explain:
To import Gtk class from gi.repository
To create a empty windows object.
To connect the window's delete event.
we display the window
we start the GTK+ processing loop which we quit when the window is closed (see line 5).
本文介绍了一个简单的GTK+ Python程序示例,通过创建一个空窗口并处理关闭事件,展示了如何使用GTK+库来构建基本的GUI应用程序。
1590

被折叠的 条评论
为什么被折叠?



