BFMainWindow.py 文件源码

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

项目:BannerFactory 作者: xuning0 项目源码 文件源码
def __init__(self):
        super().__init__()
        self.opened_image_path = None
        self.opened_image = None
        self.processed_image = None

        self.image_view = QLabel()
        self.image_view.setStyleSheet('QLabel { background-color : black; }')
        self.image_view.setSizePolicy(QSizePolicy.Ignored, QSizePolicy.Ignored)
        self.image_view.setAlignment(Qt.AlignCenter)

        self.combo_box = QComboBox()
        self.combo_box.addItems(tag_types)
        for i in range(len(tag_types)):
            self.combo_box.setItemData(i, QColor(*(ImageProcess.TAG_COLOR_LIST[i])), Qt.ForegroundRole)

        self.tag_edit = QLineEdit()
        self.title_edit = QLineEdit()
        self.desc_edit = QLineEdit()

        self.setup_ui()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号