Home
last modified time | relevance | path

Searched refs:getboolean (Results 1 – 25 of 44) sorted by relevance

12

/external/python/cpython3/Lib/test/
Dtest_configparser.py130 eq(cf.getboolean('Types', 'boolean'), False)
158 eq(cf.getboolean('Types', 'boolean', fallback=True), False)
159 eq(cf.getboolean('Types', 'no-such-boolean', fallback="yes"),
161 eq(cf.getboolean('Types', 'no-such-boolean', fallback=True), True)
163 cf.getboolean('Types', 'no-such-boolean')
164 eq(cf.getboolean('No Such Types', 'boolean', fallback=True), True)
223 eq(cf['Types'].getboolean('boolean', True), False)
224 eq(cf['Types'].getboolean('boolean', fallback=True), False)
225 eq(cf['Types'].getboolean('no-such-boolean', "yes"), "yes") # sic!
226 eq(cf['Types'].getboolean('no-such-boolean', fallback="yes"),
[all …]
Dtest_tcl.py177 self.assertIs(tcl.getboolean('on'), True)
178 self.assertIs(tcl.getboolean('1'), True)
179 self.assertIs(tcl.getboolean(42), True)
180 self.assertIs(tcl.getboolean(0), False)
181 self.assertRaises(TypeError, tcl.getboolean)
182 self.assertRaises(TypeError, tcl.getboolean, 'on', '1')
183 self.assertRaises(TypeError, tcl.getboolean, b'on')
184 self.assertRaises(TypeError, tcl.getboolean, 1.0)
185 self.assertRaises(TclError, tcl.getboolean, 'a')
187 tcl.getboolean, 'on\0')
[all …]
/external/python/cpython2/Lib/test/
Dtest_tcl.py179 self.assertIs(tcl.getboolean('on'), True)
180 self.assertIs(tcl.getboolean('1'), True)
181 self.assertIs(tcl.getboolean(u'on'), True)
182 self.assertIs(tcl.getboolean(u'1'), True)
183 self.assertIs(tcl.getboolean(42), True)
184 self.assertIs(tcl.getboolean(0), False)
185 self.assertIs(tcl.getboolean(42L), True)
186 self.assertIs(tcl.getboolean(0L), False)
187 self.assertRaises(TypeError, tcl.getboolean)
188 self.assertRaises(TypeError, tcl.getboolean, 'on', '1')
[all …]
Dtest_cfgparser.py229 self.assertTrue(cf.getboolean('BOOLTEST', 't%d' % x))
230 self.assertFalse(cf.getboolean('BOOLTEST', 'f%d' % x))
232 cf.getboolean, 'BOOLTEST', 'e%d' % x)
/external/python/cpython2/Demo/tkinter/guido/
Dwish.py19 if tk.getboolean(tk.call('info', 'complete', cmd)):
Drmt.py107 if t.getboolean(tk.call('info', 'complete', cmd)): # XXX
/external/python/cpython3/Lib/tkinter/
D__init__.py326 elif not self._tk.getboolean(self._tk.call("info", "exists", self._name)):
332 if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
548 return self._tk.globalsetvar(self._name, self._tk.getboolean(value))
554 return self._tk.getboolean(self._tk.globalgetvar(self._name))
566 def getboolean(s): function
569 return _default_root.tk.getboolean(s)
611 return self.tk.getboolean(self.tk.call(
670 def getboolean(self, s): member in Misc
673 return self.tk.getboolean(s)
973 return self.tk.getboolean(
[all …]
Dttk.py577 ret = self.tk.getboolean(
690 return self.tk.getboolean(self.tk.call(self._w, "validate"))
1267 return self.tk.getboolean(self.tk.call(self._w, "exists", item))
1520 return self.tk.getboolean(
/external/python/cpython2/Lib/lib-tk/
DTkinter.py253 elif not self._tk.getboolean(self._tk.call("info", "exists", self._name)):
259 if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
414 return self._tk.globalsetvar(self._name, self._tk.getboolean(value))
418 return self._tk.getboolean(self._tk.globalgetvar(self._name))
428 def getboolean(s): function
430 return _default_root.tk.getboolean(s)
467 return self.tk.getboolean(self.tk.call(
521 def getboolean(self, s): member in Misc
523 return self.tk.getboolean(s)
823 return self.tk.getboolean(
[all …]
Dttk.py573 ret = self.tk.getboolean(
686 return self.tk.getboolean(self.tk.call(self._w, "validate"))
1236 return self.tk.getboolean(self.tk.call(self._w, "exists", item))
1467 return self.tk.getboolean(
/external/python/cpython3/Doc/library/
Dconfigparser.rst157 provide :meth:`~ConfigParser.getboolean`. This method is case-insensitive and
163 >>> topsecret.getboolean('ForwardX11')
165 >>> config['bitbucket.org'].getboolean('ForwardX11')
167 >>> config.getboolean('bitbucket.org', 'Compression')
170 Apart from :meth:`~ConfigParser.getboolean`, config parsers also
215 :meth:`~ConfigParser.getboolean` methods, for example:
221 >>> topsecret.getboolean('BatchMode', fallback=True)
224 >>> topsecret.getboolean('BatchMode', fallback=True)
654 :meth:`~ConfigParser.getboolean` are implemented. Should other getters be
674 By default when using :meth:`~ConfigParser.getboolean`, config parsers
[all …]
/external/clang/utils/check_cfc/
Dcheck_cfc.py342 if config.getboolean('Checks', check_name)]
377 if config.getboolean('Checks', check_name):
/external/autotest/site_utils/rpm_control_system/
Drpm_logging_config.py113 if rpm_config.getboolean('GENERAL', 'debug'):
/external/autotest/server/cros/
Dap_config.py126 return self.ap_config.getboolean(self.bss, self.CONF_RPM_MANAGED)
/external/u-boot/tools/patman/
Dsettings.py244 val = config.getboolean('settings', name)
/external/python/cpython2/Doc/library/
Dconfigparser.rst322 .. method:: RawConfigParser.getboolean(section, option)
473 # getint() and getboolean() also do this for their respective types
480 if config.getboolean('Section1', 'a_bool'):
/external/python/cpython2/Lib/lib-tk/test/test_tkinter/
Dtest_variables.py19 return self.root.getboolean(self.root.call("info", "exists", *args))
/external/python/cpython3/Lib/tkinter/test/test_tkinter/
Dtest_variables.py29 return self.root.getboolean(self.root.call("info", "exists", *args))
/external/sonivox/jet_tools/JetCreator/
DJetFile.py283 … config.chase_controllers = config.getboolean(OUTPUT_SECTION, OUTPUT_CHASE_CONTROLLERS)
290 … config.delete_empty_tracks = config.getboolean(OUTPUT_SECTION, OUTPUT_OMIT_EMPTY_TRACKS)
/external/python/cpython2/Lib/idlelib/
DconfigHandler.py56 return self.getboolean(section, option)
/external/python/cpython2/Lib/
DConfigParser.py367 def getboolean(self, section, option): member in RawConfigParser
/external/python/cpython3/Lib/idlelib/
Dconfig.py62 return self.getboolean(section, option)
/external/python/cpython3/Misc/NEWS.d/
D3.5.0a4.rst348 _tkinter.tkapp.getboolean() now supports Tcl_Obj and always returns bool.
/external/python/cpython2/Misc/NEWS.d/
D2.7.10rc1.rst172 _tkinter.tkapp.getboolean() now supports long and Tcl_Obj and always returns
/external/python/cpython3/Lib/
Dconfigparser.py825 def getboolean(self, section, option, *, raw=False, vars=None, member in RawConfigParser

12