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主角 –