Home
last modified time | relevance | path

Searched refs:_format_mapdict (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/lib-tk/test/test_ttk/
Dtest_functions.py129 result = ttk._format_mapdict(opts)
132 self.assertEqual(ttk._format_mapdict(opts, script=True),
135 self.assertEqual(ttk._format_mapdict({2: []}), ('-2', ''))
138 result = ttk._format_mapdict(opts)
143 self.assertEqual(ttk._format_mapdict(valid), ('-opt', '{ } hi'))
147 self.assertRaises(TypeError, ttk._format_mapdict, invalid)
149 self.assertRaises(TypeError, ttk._format_mapdict, invalid)
152 self.assertEqual(ttk._format_mapdict(valid), ('-opt', '1 value'))
156 self.assertEqual(ttk._format_mapdict(valid),
161 self.assertRaises(TypeError, ttk._format_mapdict, opts)
[all …]
/external/python/cpython2/Lib/lib-tk/
Dttk.py100 def _format_mapdict(mapdict, script=False): function
217 s = ' '.join(_format_mapdict(opts['map'], True))
403 self.tk.call(self._name, "map", style, *_format_mapdict(kw)),