0
self.hash_radio=StringVar()
ttk.Radiobutton(master,text='MD5',variable=self.hash_radio,value='md5').place(x=271,y=51,width=66)
self.te2= StringVar()
ttk.Entry(master,textvariable=self.te2, width = 23).place(x=355,y=218)
def rest(self):
self.te2.delete(0,'end')
self.hash_Radio.setChecked(False)
当我尝试使用其余按钮功能,那么它不起作用。 我不知道为什么会发生这种情况。 任何人都可以帮我如何清除输入字段并取消选择python3中的单选按钮?
请尝试创建[MCVE](https://stackoverflow.com/help/mcve),以便人们可以提供帮助。另外:你使用的是什么gui界面? Tkinter的? QT? wxWidgets的? ...?请澄清! (好吧,看起来像tkinter,对吗?) –
是啊tkinter @hiro主角 –