self.lblLabel= Label(self.f1,font=('arial',16,'bold'), text="Read Only", bd=14, anchor='r')
self.lblLabel.grid(row=1,column=1)
self.txtLabel=Entry(self.f1,font=('arial',16,'bold'), textvariable=self.rander,
bd=10, insertwidth=4, bg="red", justify = 'left')
self.txtLabel.grid(row=2,column=2)
我基本上生成一个随机整数(self.rander
)并在此文本小部件中显示它。我怎样才能让它只读?