brontes_controller.py 文件源码

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

项目:CyclopsVFX-Unity 作者: geoffroygivry 项目源码 文件源码
def populate_type_shot_Widget(self):
        type_shot_dict = {"ALL": "all_icon.png", "CAM": "cam_icon.png",
                          "LGT": "lgt_icon.png", "ANM": "animation_icon.png",
                          "DMP": "matte_painting_icon.png", "PNT": "pnt_icon.png",
                          "RTO": "Roto_icon.png", "CMP": "cmp_icon.png",
                          "SFX": "sfx_icon.png"
                          }

        # populating The left widget list part with different types of assets.
        for n, v in sorted(type_shot_dict.iteritems()):
            icon_all = os.path.join(os.getenv("CYC_CORE_PATH"), "icons", v)
            type_wid = Type_widget()
            type_wid.set_text(n)
            type_wid.set_icon(icon_all)
            wid2 = QtWidgets.QListWidgetItem()
            wid2.setSizeHint(type_wid.sizeHint())
            self.shot_type_listWidget.addItem(wid2)
            self.shot_type_listWidget.setContentsMargins(100, 100, 100, 100)
            self.shot_type_listWidget.setItemWidget(wid2, type_wid)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号