breathing_phrase_list_wt.py 文件源码

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

项目:mindfulness-at-the-computer 作者: SunyataZero 项目源码 文件源码
def update_gui(self):
        self.updating_gui_bool = True

        # If the list is now empty, disabling buttons
        # If the list is no longer empty, enable buttons
        self.set_button_states(mc.model.PhrasesM.is_empty())

        # List
        self.list_widget.clear()
        for l_phrase in mc.model.PhrasesM.get_all():
            # self.list_widget.addItem(l_collection.title_str)
            custom_label = CustomQLabel(l_phrase.title_str, l_phrase.id_int)
            list_item = QtWidgets.QListWidgetItem()
            self.list_widget.addItem(list_item)
            self.list_widget.setItemWidget(list_item, custom_label)

        self.updating_gui_bool = False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号