使用获取密码的组件后,如何将Entry组件重置为普通文本?

How to reset the Entry component to normal text after using the component for getting Password?

pcount = 0;
def ready_password(self, event):
        self.pcount = self.pcount + 1;
        print(self.pcount);
        if self.pcount == 1:
            self.password.delete(0, END);
            self.password['fg'] = "#000000";
            self.password['show'] = "*";

    def reset_password(self, event):
        if self.password.get() == "":
            self.password['fg'] = "#D3D3D3";
            self.password.insert(0, "Password");
            self.password['show']="????????";
            self.pcount = 0;

我希望在 运行 reset_passsword 函数时将文本显示为普通文本而不使用回显字符。问号处应该有什么值?

空字符串应该代替问号。

self.password['show']="";