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函数时不使用回显字符。代替问号应该有什么价值?
添加回答
举报
0/150
提交
取消