def mess_with_buttons(mess, buttons, title = ""):
mwb = gtk.Dialog(parent = None,
buttons = buttons,
flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
)
mwb.set_title(title)
finbox = mwb.get_content_area()
l = gtk.Label(mess)
finbox.pack_start(l)
mwb.set_keep_above(True)
mwb.show_all()
response = mwb.run()
mwb.hide()
mwb.destroy()
return response
评论列表
文章目录