TODO:
On button click in main window, open a popup dialog
框架:
pygtk
体验:
初级
答案 0 :(得分:6)
import gtk
d = gtk.Dialog()
d.add_buttons(gtk.STOCK_YES, 1, gtk.STOCK_NO, 2)
label = gtk.Label('Do you like GTK?')
label.show()
d.vbox.pack_start(label)
answer = d.run()
d.destroy()
print answer