Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/359.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何删除python-mechanize中的控件?_Python_Controls_Mechanize - Fatal编程技术网

如何删除python-mechanize中的控件?

如何删除python-mechanize中的控件?,python,controls,mechanize,Python,Controls,Mechanize,了解添加新控件的API非常重要 br.form.new_control('text','ctl00$ContentPlaceHolder1$fooBar',{'value':''}) br.form.fixup() 如何删除python mechanize中的控件 ctrl = br.form.find_control('ctl00$ContentPlaceHolder1$fooBar') ctrl.disabled = True

了解添加新控件的API非常重要

 br.form.new_control('text','ctl00$ContentPlaceHolder1$fooBar',{'value':''})
 br.form.fixup()
如何删除python mechanize中的控件

ctrl = br.form.find_control('ctl00$ContentPlaceHolder1$fooBar')
ctrl.disabled = True