Home
last modified time | relevance | path

Searched refs:wantobjects (Results 1 – 17 of 17) sorted by relevance

/third_party/python/Lib/test/
Dtest_tcl.py60 self.wantobjects = self.interp.tk.wantobjects()
433 if tcl.wantobjects():
452 if self.wantobjects:
465 self.assertEqual(passValue(True), True if self.wantobjects else '1')
466 self.assertEqual(passValue(False), False if self.wantobjects else '0')
481 b'str\x00ing' if self.wantobjects else 'str\x00ing')
483 b'str\xc0\x80ing' if self.wantobjects else 'str\xc0\x80ing')
485 b'str\xbding' if self.wantobjects else 'str\xbding')
487 self.assertEqual(passValue(i), i if self.wantobjects else str(i))
493 if self.wantobjects:
[all …]
Dtest_ttk_textonly.py17 def wantobjects(self): member in MockTkApp
/third_party/python/Lib/tkinter/test/
Dsupport.py14 cls.wantobjects = cls.root.wantobjects()
46 self.wantobjects = tkinter.wantobjects
Dwidget_tests.py37 if not self._stringify and self.wantobjects and tcl_version >= (8, 6):
55 if self._stringify or not self.wantobjects:
/third_party/python/Lib/tkinter/test/test_ttk/
Dtest_widgets.py505 ('1', '', '2') if self.wantobjects else
511 ('a b', 'a\tb', 'a\nb') if self.wantobjects else
517 (r'a\tb', '"a"', '} {') if self.wantobjects else
529 ('1', '2', '') if self.wantobjects else '1 2 {}')
634 0 if self.wantobjects else '0')
637 0 if self.wantobjects else '0')
692 if self.wantobjects:
791 if self.wantobjects:
808 if self.wantobjects:
1256 ('1', '', '2') if self.wantobjects else
[all …]
Dtest_extensions.py29 if self.wantobjects:
121 self.assertEqual(lscale.label['text'], 0 if self.wantobjects else '0')
144 newval if self.wantobjects else str(newval))
151 if self.wantobjects:
/third_party/python/Modules/clinic/
D_tkinter.c.h677 int interactive, int wantobjects, int wantTk, int sync,
688 int wantobjects = 0; in _tkinter_create() local
759 wantobjects = _PyLong_AsInt(args[4]); in _tkinter_create()
760 if (wantobjects == -1 && PyErr_Occurred()) { in _tkinter_create()
799 …nter_create_impl(module, screenName, baseName, className, interactive, wantobjects, wantTk, sync, … in _tkinter_create()
/third_party/python/Lib/tkinter/test/test_tkinter/
Dtest_variables.py292 self.root.globalsetvar("name", 42 if self.root.wantobjects() else 1)
300 true = 1 if self.root.wantobjects() else "1"
301 false = 0 if self.root.wantobjects() else "0"
315 false = 0 if self.root.wantobjects() else "0"
Dtest_images.py160 if tkinter.TkVersion >= 8.6 and self.wantobjects:
190 self.assertEqual(image['data'], data if self.wantobjects
230 self.assertEqual(image['data'], data if self.wantobjects
239 self.assertEqual(image['format'], ('gif',) if self.wantobjects
Dtest_font.py32 sizetype = int if self.wantobjects else str
57 sizetype = int if self.wantobjects else str
Dtest_widgets.py44 self.assertEqual(widget['container'], 0 if self.wantobjects else '0')
48 self.assertEqual(widget2['container'], 1 if self.wantobjects else '1')
1132 if not self.wantobjects or stringify:
1134 if self.wantobjects and stringify:
/third_party/python/Modules/
D_tkinter.c295 int wantobjects; member
707 int interactive, int wantobjects, int wantTk, int sync, in Tkapp_New() argument
718 v->wantobjects = wantobjects; in Tkapp_New()
1470 if (self->wantobjects) { in Tkapp_ObjectResult()
1955 if (self->wantobjects) { in GetVar()
3069 int wantobjects = -1; in Tkapp_WantObjects() local
3070 if (!PyArg_ParseTuple(args, "|i:wantobjects", &wantobjects)) in Tkapp_WantObjects()
3072 if (wantobjects == -1) in Tkapp_WantObjects()
3073 return PyBool_FromLong(((TkappObject*)self)->wantobjects); in Tkapp_WantObjects()
3074 ((TkappObject*)self)->wantobjects = wantobjects; in Tkapp_WantObjects()
[all …]
/third_party/python/Lib/tkinter/
Dfiledialog.py346 if not widget.tk.wantobjects() and "multiple" in self.options:
D__init__.py42 wantobjects = 1 variable
2299 …self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, …
/third_party/python/Misc/NEWS.d/
D3.10.0a3.rst534 platform and does not depend on the value of ``wantobjects``.
/third_party/python/Doc/whatsnew/
D2.3.rst1576 the :meth:`wantobjects` method of :class:`tkapp` objects.
1584 the :attr:`wantobjects` variable in the :mod:`Tkinter` module to false before
1588 Tkinter.wantobjects = 0
/third_party/python/Misc/
DHISTORY2709 - Issue #20072: Fixed multiple errors in tkinter with wantobjects is False.
2905 - Issue #20067: Tkinter variables now work when wantobjects is false.
3139 - Issue #19320: test_tcl no longer fails when wantobjects is false.
22683 are wrapped. This can be configured through the wantobjects method,
22684 or Tkinter.wantobjects.