/third_party/python/Lib/tkinter/test/test_ttk/ |
D | test_widgets.py | 3 from tkinter import ttk, TclError 72 self.assertRaises(tkinter.TclError, self.widget.identify, None, 5) 73 self.assertRaises(tkinter.TclError, self.widget.identify, 5, None) 74 self.assertRaises(tkinter.TclError, self.widget.identify, 5, '') 100 self.assertRaises(tkinter.TclError, self.widget.instate, 102 self.assertRaises(tkinter.TclError, self.widget.instate, 262 self.assertRaises(tkinter.TclError, cbtn.tk.globalgetvar, 323 self.assertRaises(tkinter.TclError, self.entry.bbox, 'noindex') 324 self.assertRaises(tkinter.TclError, self.entry.bbox, None) 334 self.assertRaises(tkinter.TclError, self.entry.identify, None, 5) [all …]
|
D | test_extensions.py | 22 self.assertRaises(tkinter.TclError, x.tk.globalgetvar, var) 35 self.assertRaises(tkinter.TclError, x.tk.globalgetvar, name) 49 self.assertNotEqual(sys.last_type, tkinter.TclError) 67 self.assertRaises((ValueError, tkinter.TclError), x._variable.get) 99 self.assertRaises(tkinter.TclError, ttk.LabeledScale, master, a='b') 213 self.assertRaises(tkinter.TclError, optmenu.tk.globalgetvar, name) 217 self.assertRaises(tkinter.TclError, 263 self.assertRaises(tkinter.TclError, optmenu['menu'].invoke, -1)
|
D | test_style.py | 84 self.assertRaises(tkinter.TclError, style.layout, 'NotALayout') 101 self.assertRaises(tkinter.TclError, style.layout, 'Treeview', 106 self.assertRaises(tkinter.TclError, self.style.theme_use,
|
/third_party/python/Lib/tkinter/test/test_tkinter/ |
D | test_geometry_managers.py | 4 from tkinter import TclError 29 with self.assertRaisesRegex(TclError, 'window "%s" isn\'t packed' % b): 31 with self.assertRaisesRegex(TclError, 'bad window path name ".foo"'): 62 with self.assertRaisesRegex(TclError, 'window "%s" isn\'t packed' % b): 64 with self.assertRaisesRegex(TclError, 'bad window path name ".foo"'): 111 with self.assertRaisesRegex(TclError, 114 with self.assertRaisesRegex(TclError, 'bad window path name ".foo"'): 229 with self.assertRaisesRegex(TclError, 'window "%s" isn\'t packed' % a): 295 with self.assertRaisesRegex(TclError, "can't place %s relative to " 300 with self.assertRaisesRegex(TclError, 'bad window path name'): [all …]
|
D | test_misc.py | 44 self.assertRaisesRegex(tkinter.TclError, 56 self.assertRaisesRegex(tkinter.TclError, 59 self.assertRaisesRegex(tkinter.TclError, 62 self.assertRaisesRegex(tkinter.TclError, 83 with self.assertRaises(tkinter.TclError): 98 with self.assertRaises(tkinter.TclError): 121 with self.assertRaises(tkinter.TclError): 136 with self.assertRaises(tkinter.TclError): 159 with self.assertRaises(tkinter.TclError): 162 with self.assertRaises(tkinter.TclError): [all …]
|
D | test_loadtk.py | 6 from tkinter import Tcl, TclError 15 self.assertRaises(TclError,tcl.winfo_geometry) 41 self.assertRaises(TclError, tcl.winfo_geometry) 42 self.assertRaises(TclError, tcl.loadtk)
|
D | test_text.py | 30 self.assertRaises(tkinter.TclError, text.search, None, '1.0') 31 self.assertRaises(tkinter.TclError, text.search, 'a', None) 32 self.assertRaises(tkinter.TclError, text.search, None, None) 35 self.assertRaises(tkinter.TclError, text.search, '', 0)
|
D | test_widgets.py | 3 from tkinter import TclError 274 with self.assertRaises(tkinter.TclError) as cm: 278 with self.assertRaises(tkinter.TclError) as cm: 310 with self.assertRaisesRegex(TclError, r"^unknown option -image$"): 500 self.assertRaises(tkinter.TclError, widget.bbox, 'noindex') 501 self.assertRaises(tkinter.TclError, widget.bbox, None) 686 self.assertRaises(tkinter.TclError, widget.bbox, 'noindex') 687 self.assertRaises(tkinter.TclError, widget.bbox, None) 823 with self.assertRaisesRegex(TclError, 'item number "0" out of range'): 831 with self.assertRaisesRegex(TclError, 'bad listbox index "red"'): [all …]
|
D | test_variables.py | 7 TclError) 139 with self.assertRaises(TclError): 190 with self.assertRaises(TclError): 250 with self.assertRaises((ValueError, TclError)): 277 with self.assertRaises((ValueError, TclError)): 317 with self.assertRaises(TclError):
|
/third_party/python/Lib/test/ |
D | test_tcl.py | 17 from _tkinter import TclError 77 self.assertRaises(TclError,tcl.eval,'set a') 81 self.assertRaises(TclError,tcl.eval,'this is wrong') 90 self.assertRaises(TclError,tcl.call,'set','a') 94 self.assertRaises(TclError,tcl.call,'this','is','wrong') 118 self.assertRaises(TclError,tcl.getvar,'a') 122 self.assertRaises(TclError,tcl.getvar,'a(1)') 143 self.assertRaises(TclError,tcl.unsetvar,'a') 166 self.assertRaises(TclError, tcl.getint, str(2**1000)) 172 self.assertRaises(TclError, tcl.getint, 'a') [all …]
|
D | test_ttk_guionly.py | 12 from _tkinter import TclError 23 except TclError as msg:
|
D | test_tix.py | 14 from tkinter import TclError 22 except TclError:
|
/third_party/python/Lib/idlelib/ |
D | tooltip.py | 39 except TclError: 78 except TclError: # pragma: no cover 108 except TclError: 140 except TclError: # pragma: no cover
|
D | window.py | 1 from tkinter import Toplevel, TclError 29 except TclError: 90 except TclError:
|
D | calltip_w.py | 6 from tkinter import Label, LEFT, SOLID, TclError 130 except TclError: 137 except TclError: 142 except (TclError, ValueError):
|
D | replace.py | 8 from tkinter import StringVar, TclError 66 except TclError: 70 except TclError: 219 except TclError:
|
D | textview.py | 4 from tkinter import Toplevel, Text, TclError,\ 25 raise TclError(f'{self.__class__.__name__} does not support "pack"') 28 raise TclError(f'{self.__class__.__name__} does not support "place"')
|
D | codecontext.py | 17 from tkinter import Frame, Text, TclError 89 except TclError: # pragma: no cover 227 except TclError:
|
D | redirector.py | 1 from tkinter import TclError 116 except TclError:
|
D | search.py | 7 from tkinter import TclError 110 except TclError:
|
/third_party/python/Lib/idlelib/idle_test/ |
D | test_redirector.py | 6 from tkinter import Tk, Text, TclError 29 self.assertRaises(TclError, WidgetRedirector, self.text) 105 self.func.__init__(TclError()) 117 self.func.__init__(TclError())
|
D | test_searchengine.py | 6 from tkinter import BooleanVar, StringVar, TclError # ,Tk, Text 80 raise TclError 87 raise TclError 242 raise TclError 255 raise TclError
|
D | mock_tk.py | 7 from _tkinter import TclError 140 raise TclError('bad text index "%s"' % index) from None 266 raise TclError('''bad comparison operator "%s": '''
|
D | test_textview.py | 14 from tkinter import Tk, TclError, CHAR, NONE, WORD 76 self.assertRaises(TclError, scroll.pack) 77 self.assertRaises(TclError, scroll.place)
|
/third_party/python/Lib/tkinter/ |
D | dialog.py | 3 from tkinter import _cnfmerge, Widget, TclError, Button, Pack 22 except TclError: pass
|