def _set_button(self, button, label, color):
"""Helper function to set a button's label and background color."""
#change background color of button (normal and mouseover)
button.modify_bg(gtk.STATE_NORMAL, color)
button.modify_bg(gtk.STATE_PRELIGHT, color)
#set button caption and default size
button.set_label(label)
button.set_size_request(70, 70)
button.show()
评论列表
文章目录