lineyka_manager.py 文件源码

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

项目:lineyka 作者: volodya-renderberg 项目源码 文件源码
def tm_change_task_artist_action(self, window, item_):
        # get new artist
        new_artist = window.combo_dialog_combo_box.currentText()
        if new_artist in ['None', '-None-']:
            new_artist = ''

        # change artist
        task_data = dict(item_.task)
        result = self.db_chat.change_artist(self.current_project, task_data, new_artist)
        if not result[0]:
            self.message(result[1], 2)
            return
        new_status = result[1][0]
        outsource = result[1][1]
        #print(new_status)

        # edit labels
        self.myWidget.tm_data_label_1.setText(new_artist)
        task_data['artist'] = new_artist
        if new_status:
            task_data['status'] = new_status
        task_data['outsource'] = outsource
        item_.task = task_data

        # change table color
        rgb = self.db_chat.color_status[task_data['status']]
        r = (rgb[0]*255)
        g = (rgb[1]*255)
        b = (rgb[2]*255)
        color = QtGui.QColor(r, g, b)
        brush = QtGui.QBrush(color)
        item_.setBackground(brush)

        self.close_window(window)

    # ------ change input --------------
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号