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)
评论列表
文章目录