application_menu.py 文件源码

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

项目:sticky-notes 作者: rubyAce71697 项目源码 文件源码
def change_the_title_of_note_in_menu(self,old_title,new_title):

        print "|||||||||||||||"*20
        print "tile cchanged" + new_title

        for i in self.menu.get_children():
            logger.debug("in loop")

            logger.debug(i.get_label())

            if (i.get_submenu()):
                logger.debug("Submenu is here")

                for j in i.get_submenu().get_children():

                    logger.debug("---->" +  j.get_label())



        for i in self.menu.get_children()[7].get_submenu().get_children():

            if old_title == i.get_label():
                GObject.idle_add(i.set_label,new_title)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号