Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/test/
Dtest_tcl.py51 self.wantobjects = self.interp.tk.wantobjects()
397 if tcl.wantobjects():
416 if self.wantobjects:
429 self.assertEqual(passValue(True), True if self.wantobjects else '1')
430 self.assertEqual(passValue(False), False if self.wantobjects else '0')
440 b'str\x00ing' if self.wantobjects else 'str\x00ing')
442 b'str\xc0\x80ing' if self.wantobjects else 'str\xc0\x80ing')
444 b'str\xbding' if self.wantobjects else 'str\xbding')
446 self.assertEqual(passValue(i), i if self.wantobjects else str(i))
452 if self.wantobjects:
[all …]
/external/python/cpython2/Lib/test/
Dtest_tcl.py50 self.wantobjects = self.interp.tk.wantobjects()
417 if tcl.wantobjects():
436 if self.wantobjects:
451 self.assertEqual(passValue(True), True if self.wantobjects else '1')
452 self.assertEqual(passValue(False), False if self.wantobjects else '0')
465 self.assertEqual(passValue(i), i if self.wantobjects else str(i))
471 if self.wantobjects:
475 if self.wantobjects:
485 (1, '2', (3.4,)) if self.wantobjects else '1 2 3.4')
563 (1, '2', (3.4,)) if self.wantobjects else
[all …]
/external/python/cpython3/Lib/tkinter/test/test_ttk/
Dtest_widgets.py512 ('1', '', '2') if self.wantobjects else
518 ('a b', 'a\tb', 'a\nb') if self.wantobjects else
524 (r'a\tb', '"a"', '} {') if self.wantobjects else
536 ('1', '2', '') if self.wantobjects else '1 2 {}')
644 0 if self.wantobjects else '0')
647 0 if self.wantobjects else '0')
703 if self.wantobjects:
803 if self.wantobjects:
821 if self.wantobjects:
1265 ('1', '', '2') if self.wantobjects else
[all …]
Dtest_extensions.py28 if self.wantobjects:
133 self.assertEqual(lscale.label['text'], 0 if self.wantobjects else '0')
156 newval if self.wantobjects else str(newval))
163 if self.wantobjects:
/external/python/cpython2/Lib/lib-tk/test/test_tkinter/
Dtest_variables.py199 self.root.globalsetvar("name", 42 if self.root.wantobjects() else 1)
203 self.root.globalsetvar("name", 42L if self.root.wantobjects() else 1L)
215 true = 1 if self.root.wantobjects() else "1"
216 false = 0 if self.root.wantobjects() else "0"
238 false = 0 if self.root.wantobjects() else "0"
Dtest_font.py32 sizetype = int if self.wantobjects else str
57 sizetype = int if self.wantobjects else str
Dtest_images.py117 if tkinter.TkVersion >= 8.6 and self.wantobjects:
146 self.assertEqual(image['data'], data if self.wantobjects
185 self.assertEqual(image['data'], data if self.wantobjects
194 self.assertEqual(image['format'], ('gif',) if self.wantobjects
Dtest_widgets.py41 self.assertEqual(widget['container'], 0 if self.wantobjects else '0')
45 self.assertEqual(widget2['container'], 1 if self.wantobjects else '1')
1044 if not self.wantobjects or stringify:
1046 if self.wantobjects and stringify:
/external/python/cpython2/Lib/lib-tk/test/test_ttk/
Dtest_widgets.py510 ('1', '', '2') if self.wantobjects else
516 ('a b', 'a\tb', 'a\nb') if self.wantobjects else
522 (r'a\tb', '"a"', '} {') if self.wantobjects else
534 ('1', '2', '') if self.wantobjects else '1 2 {}')
642 0 if self.wantobjects else '0')
645 0 if self.wantobjects else '0')
702 if self.wantobjects:
802 if self.wantobjects:
820 if self.wantobjects:
1185 if not self.wantobjects:
[all …]
Dtest_extensions.py28 if self.wantobjects:
73 if self.wantobjects:
138 self.assertEqual(lscale.label['text'], 0 if self.wantobjects else '0')
161 newval if self.wantobjects else str(newval))
167 if self.wantobjects:
Dsupport.py14 cls.wantobjects = cls.root.wantobjects()
Dtest_style.py28 [('active', 'background', 'blue')] if self.wantobjects else
Dtest_functions.py13 def wantobjects(self): member in MockTkApp
/external/python/cpython3/Lib/tkinter/test/
Dsupport.py14 cls.wantobjects = cls.root.wantobjects()
Dwidget_tests.py38 if not self._stringify and self.wantobjects and tcl_version >= (8, 6):
56 if self._stringify or not self.wantobjects:
/external/python/cpython3/Lib/tkinter/test/test_tkinter/
Dtest_variables.py275 self.root.globalsetvar("name", 42 if self.root.wantobjects() else 1)
283 true = 1 if self.root.wantobjects() else "1"
284 false = 0 if self.root.wantobjects() else "0"
298 false = 0 if self.root.wantobjects() else "0"
Dtest_font.py32 sizetype = int if self.wantobjects else str
57 sizetype = int if self.wantobjects else str
Dtest_images.py116 if tkinter.TkVersion >= 8.6 and self.wantobjects:
145 self.assertEqual(image['data'], data if self.wantobjects
184 self.assertEqual(image['data'], data if self.wantobjects
193 self.assertEqual(image['format'], ('gif',) if self.wantobjects
Dtest_widgets.py44 self.assertEqual(widget['container'], 0 if self.wantobjects else '0')
48 self.assertEqual(widget2['container'], 1 if self.wantobjects else '1')
1133 if not self.wantobjects or stringify:
1135 if self.wantobjects and stringify:
/external/python/cpython3/Modules/clinic/
D_tkinter.c.h697 int interactive, int wantobjects, int wantTk, int sync,
708 int wantobjects = 0; in _tkinter_create() local
789 wantobjects = _PyLong_AsInt(args[4]); in _tkinter_create()
790 if (wantobjects == -1 && PyErr_Occurred()) { in _tkinter_create()
839 …nter_create_impl(module, screenName, baseName, className, interactive, wantobjects, wantTk, sync, … in _tkinter_create()
/external/python/cpython3/Modules/
D_tkinter.c290 int wantobjects; member
650 int interactive, int wantobjects, int wantTk, int sync, in Tkapp_New() argument
661 v->wantobjects = wantobjects; in Tkapp_New()
1413 if (self->wantobjects) { in Tkapp_ObjectResult()
1898 if (self->wantobjects) { in GetVar()
3012 int wantobjects = -1; in Tkapp_WantObjects() local
3013 if (!PyArg_ParseTuple(args, "|i:wantobjects", &wantobjects)) in Tkapp_WantObjects()
3015 if (wantobjects == -1) in Tkapp_WantObjects()
3016 return PyBool_FromLong(((TkappObject*)self)->wantobjects); in Tkapp_WantObjects()
3017 ((TkappObject*)self)->wantobjects = wantobjects; in Tkapp_WantObjects()
[all …]
/external/python/cpython2/Modules/
D_tkinter.c260 int wantobjects; member
714 int interactive, int wantobjects, int wantTk, int sync, char *use) in Tkapp_New() argument
724 v->wantobjects = wantobjects; in Tkapp_New()
1519 if(self->wantobjects) { in Tkapp_CallResult()
2029 if (((TkappObject*)self)->wantobjects) { in GetVar()
3189 int wantobjects = -1; in Tkapp_WantObjects() local
3190 if (!PyArg_ParseTuple(args, "|i:wantobjects", &wantobjects)) in Tkapp_WantObjects()
3192 if (wantobjects == -1) in Tkapp_WantObjects()
3193 return PyBool_FromLong(((TkappObject*)self)->wantobjects); in Tkapp_WantObjects()
3194 ((TkappObject*)self)->wantobjects = wantobjects; in Tkapp_WantObjects()
[all …]
/external/python/cpython2/Lib/lib-tk/
DtkFileDialog.py89 if not widget.tk.wantobjects() and "multiple" in self.options:
/external/python/cpython2/Lib/lib-tk/test/
Dwidget_tests.py43 if not self._stringify and self.wantobjects and tcl_version >= (8, 6):
61 if self._stringify or not self.wantobjects:
/external/python/cpython2/Misc/NEWS.d/
D2.7.7rc1.rst339 widgets to work in wantobjects=True mode.
571 Fixed multiple errors in tkinter with wantobjects is False.
618 Tkinter variables now work when wantobjects is false.
1207 test_tcl no longer fails when wantobjects is false.

12