play_holdem.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:learning-texas-holdem 作者: gjgregory 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号