ShapeshiftGui.py 文件源码

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

项目:py_ShapeShiftGui 作者: Chiheb-Nexus 项目源码 文件源码
def set_default_buttons_img(self):
        """
            Set random ComboBox coins
        """
        nb1, nb2 = None, None

        while True:
            nb1 = randint(0, len(self.coin_list)-1)
            nb2 = randint(0, len(self.coin_list)-1)
            if nb1 != nb2:
                # DEBUG
                #print(nb1, nb2, len(self.list_imgs_path))
                break

        self.combo.set_active(nb1)
        self.combo2.set_active(nb2)
        self.img_name1, self.img_name2 = self.coin_list[nb1], self.coin_list[nb2]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号