python中用label替换title

vscode里边title: new Text ——title不能用,让用label替换,替换后还是报错为啥呀

请贴代码,谢谢