Adds a button with the given text and sets things up so that clicking
the button will emit the Gtk.Dialog ::response signal with the given
response_id. The button is appended to the end of the dialog’s action
area. The button widget is returned, but usually you don’t need it.
The add_buttons() method adds several buttons to the Gtk.Dialog using
the button data passed as arguments to the method. This method is the
same as calling the Gtk.Dialog.add_button() repeatedly.
The button data pairs - button text (or stock ID) and a response ID integer are passed individually. For example:
您要查找的方法是Gtk.Dialog.add_button:
如果要添加几个按钮,则可以使用Gtk.Dialog.add_buttons:
相关问题 更多 >
编程相关推荐