/third_party/python/Lib/tkinter/ |
H A D | __init__.py | 23 tk = tkinter.Tk() 24 frame = tkinter.Frame(tk, relief=RIDGE, borderwidth=2) 28 button = tkinter.Button(frame,text="Exit",command=tk.destroy) 30 tk.mainloop() 124 def _splitdict(tk, v, cut_minus=True, conv=None): 132 t = tk.splitlist(v) 395 self._tk = master.tk 650 _get_default_root('run the main loop').tk.mainloop(n) 661 return _get_default_root('use getboolean()').tk.getboolean(s) 687 self.tk [all...] |
H A D | tix.py | 86 that supports the self.tk.call method. 99 return self.tk.call('tix', 'addbitmapdir', directory) 106 return self.tk.call('tix', 'cget', option) 128 return self.tk.call(('tix', 'configure') + self._options(cnf)) 140 return self.tk.call('tix', 'filedialog', dlgclass) 142 return self.tk.call('tix', 'filedialog') 153 return self.tk.call('tix', 'getbitmap', name) 167 return self.tk.call('tix', 'getimage', name) 183 # could use self.tk.globalgetvar('tixOption', name) 184 return self.tk [all...] |
H A D | ttk.py | 6 TIP #48 (http://tip.tcl.tk/48) specified style engine. 35 # if caller passes a Tcl script to tk.call, all the values need to 43 """Formats optdict to a tuple to pass it to tk.call. 80 """Formats mapdict to pass it to tk.call. 244 def _list_from_layouttuple(tk, ltuple): 247 ltuple = tk.splitlist(ltuple) 266 val = _list_from_layouttuple(tk, val) 272 def _val_or_dict(tk, options, *args): 281 res = tk.call(*(args + options)) 286 return _splitdict(tk, re [all...] |
H A D | font.py | 21 """Given the name of a tk named font, returns a Font representation. 73 tk = getattr(root, 'tk', root) 76 font = tk.splitlist(tk.call("font", "actual", font)) 86 if self.name not in tk.splitlist(tk.call("font", "names")): 91 tk.call("font", "configure", self.name, *font) 94 tk.call("font", "create", self.name, *font) 96 self._tk = tk [all...] |
/third_party/python/Tools/unittestgui/ |
H A D | unittestgui.py | 36 import tkinter as tk namespace 213 self.dirVar = tk.StringVar() 217 self.testPatternVar = tk.StringVar() 224 tk.Label(master, text="Top Level Directory").grid(row=0) 225 self.e1 = tk.Entry(master, textvariable=self.dirVar) 227 tk.Button(master, text="...", 230 tk.Label(master, text="Test File Pattern").grid(row=1) 231 self.e2 = tk.Entry(master, textvariable = self.testPatternVar) 253 self.statusVar = tk.StringVar() 256 #tk var [all...] |
/third_party/benchmark/tools/ |
H A D | strip_asm.py | 52 def is_identifier(tk): 53 if len(tk) == 0: 55 first = tk[0] 58 for i in range(1, len(tk)): 59 c = tk[i] 73 for tk in parts: 74 if is_identifier(tk): 75 if tk.startswith('__Z'): 76 tk = tk[ [all...] |
/third_party/python/Lib/idlelib/ |
H A D | redirector.py | 20 instance that represents the tk widget. 32 tk: widget.tk, a convenience attribute, probably not needed. 40 self.tk = tk = widget.tk # widget's root 44 tk.call("rename", w, self.orig) 47 tk.createcommand(w, self.dispatch) 58 tk = widget.tk [all...] |
H A D | sidebar.py | 8 import tkinter as tk namespace 46 padx = sum(map(widget.tk.getint, [ 51 pady = sum(map(widget.tk.getint, [ 61 text.configure(state=tk.NORMAL) 65 text.configure(state=tk.DISABLED) 229 # See: https://github.com/tcltk/tk/blob/064ff9941b4b80b85916a8afe86a6c21fd388b54/library/text.tcl#L670 297 self.sidebar_text = tk.Text(self.parent, width=1, wrap=tk.NONE, 300 self.sidebar_text.config(state=tk.DISABLED) 307 self.sidebar_text.tag_config('linenumber', justify=tk [all...] |
H A D | percolator.py | 74 import tkinter as tk namespace 89 box = tk.Toplevel(parent) 93 text = tk.Text(box) 106 var1 = tk.IntVar(parent) 107 cb1 = tk.Checkbutton(box, text="Tracer1", command=toggle1, variable=var1) 109 var2 = tk.IntVar(parent) 110 cb2 = tk.Checkbutton(box, text="Tracer2", command=toggle2, variable=var2)
|
H A D | squeezer.py | 19 import tkinter as tk namespace 84 class ExpandingButton(tk.Button): 107 tk.Button.__init__(self, text, text=button_text, 193 rmenu = tk.Menu(self.text, tearoff=0) 265 text.mark_gravity("iomark", tk.RIGHT) 270 text.mark_gravity("iomark", tk.LEFT) 297 tag_names = self.text.tag_names(tk.INSERT) 307 start, end = self.text.tag_prevrange(tag_name, tk.INSERT + "+1c")
|
/third_party/toybox/toys/pending/ |
H A D | syslogd.c | 100 char *tk; in resolve_config() local 102 for (tk = strtok(config, "; \0"); tk; tk = strtok(NULL, "; \0")) { in resolve_config() 103 char *fac = tk, *lvl; in resolve_config() 108 tk = strchr(fac, '.'); in resolve_config() 109 if (!tk) return -1; in resolve_config() 110 *tk = '\0'; in resolve_config() 111 lvl = tk + 1; in resolve_config() 129 for (tk in resolve_config() 156 char *confline, *tk[2]; parse_config_file() local [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | keyofAndIndexedAccessErrors.js | 101 t: T, k: K, tk: T[K], u: U, j: J, uk: U[K], tj: T[J], uj: U[J]): void { 105 t[key] = tk; // ok, T[K] ==> T[keyof T] 106 tk = t[key]; // error, T[keyof T] =/=> T[K] 108 tk = uk; 109 uk = tk; // error 114 tk = tj; 115 tj = tk; // error 117 tk = uj; 118 uj = tk; // error 200 function f3(t, k, tk, [all...] |
/third_party/python/Lib/test/ |
H A D | test_tcl.py | 52 self.wantobjects = self.interp.tk.wantobjects() 144 tcl = self.interp.tk 165 tcl = self.interp.tk 180 tcl = self.interp.tk 495 self.addCleanup(self.interp.tk.deletecommand, 'testfunc') 545 splitlist = self.interp.tk.splitlist 546 call = self.interp.tk.call 595 tcl = self.interp.tk 628 tcl = self.interp.tk 685 tk [all...] |
H A D | test_idle.py | 9 tk = import_module('tkinter') # Also imports _tkinter. variable 21 tk.NoDefaultRoot() 23 tk._support_default_root = True 24 tk._default_root = None
|
H A D | test_ttk_textonly.py | 357 tk = MockTkApp() 360 self.assertFalse(ttk._list_from_layouttuple(tk, ())) 363 self.assertEqual(ttk._list_from_layouttuple(tk, ('name', )), 368 self.assertEqual(ttk._list_from_layouttuple(tk, sample_ltuple), 372 self.assertEqual(ttk._list_from_layouttuple(tk, 385 self.assertEqual(ttk._list_from_layouttuple(tk, ltuple), 394 self.assertRaises(ValueError, ttk._list_from_layouttuple, tk, 396 self.assertRaises(ValueError, ttk._list_from_layouttuple, tk, 398 self.assertRaises(ValueError, ttk._list_from_layouttuple, tk, 410 tk [all...] |
/third_party/python/Lib/tkinter/test/test_tkinter/ |
H A D | test_misc.py | 80 self.assertIn(timer1, root.tk.call('after', 'info')) 81 (script, _) = root.tk.splitlist(root.tk.call('after', 'info', timer1)) 85 root.tk.call(script) 95 self.assertIn(timer1, root.tk.call('after', 'info')) 96 (script, _) = root.tk.splitlist(root.tk.call('after', 'info', timer1)) 100 root.tk.call(script) 118 self.assertIn(idle1, root.tk.call('after', 'info')) 119 (script, _) = root.tk [all...] |
/third_party/python/Tools/demo/ |
H A D | hanoi.py | 32 self.tk = tk = Tk() 33 self.canvas = c = Canvas(tk) 35 width, height = tk.getint(c['width']), tk.getint(c['height']) 58 self.tk.update() 75 self.tk.update() 76 self.tk.after(25) 101 self.tk.update() 112 self.tk [all...] |
/third_party/python/Lib/idlelib/idle_test/ |
H A D | htest.py | 71 import tkinter as tk namespace 73 tk.NoDefaultRoot() 373 root = tk.Tk() 378 frameLabel = tk.Frame(root, padx=10) 380 text = tk.Text(frameLabel, wrap='word') 403 test_name = tk.StringVar(root) 432 button = tk.Button(root, textvariable=test_name, 434 next_button = tk.Button(root, text="Next", command=next_test)
|
H A D | test_editmenu.py | 7 import tkinter as tk namespace 15 On X11, replacing selections requires tk fix. 19 cls.root = root = tk.Tk() 22 cls.text = tk.Text(root) 23 cls.entry = tk.Entry(root) 25 cls.spin = tk.Spinbox(root) 49 # Generated <<Paste>> fails for tk entry without empty select
|
/third_party/skia/third_party/externals/freetype/src/type1/ |
H A D | t1afm.c | 384 AFM_TrackKern tk = fi->TrackKerns + i; in FT_LOCAL_DEF() local 387 if ( tk->degree != degree ) in FT_LOCAL_DEF() 390 if ( ptsize < tk->min_ptsize ) in FT_LOCAL_DEF() 391 *kerning = tk->min_kern; in FT_LOCAL_DEF() 392 else if ( ptsize > tk->max_ptsize ) in FT_LOCAL_DEF() 393 *kerning = tk->max_kern; in FT_LOCAL_DEF() 396 *kerning = FT_MulDiv( ptsize - tk->min_ptsize, in FT_LOCAL_DEF() 397 tk->max_kern - tk->min_kern, in FT_LOCAL_DEF() 398 tk in FT_LOCAL_DEF() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
H A D | sha1.c | 30 unsigned char tk[20]; in hmac_sha1_vector() local 45 if (sha1_vector(1, &key, &key_len, tk)) in hmac_sha1_vector() 47 key = tk; in hmac_sha1_vector() 90 forced_memzero(tk, sizeof(tk)); in hmac_sha1_vector()
|
H A D | md5.c | 30 u8 tk[16]; in hmac_md5_vector() local 45 if (md5_vector(1, &key, &key_len, tk)) in hmac_md5_vector() 47 key = tk; in hmac_md5_vector() 91 os_memset(tk, 0, sizeof(tk)); in hmac_md5_vector()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
H A D | sha1.c | 30 unsigned char tk[20]; in hmac_sha1_vector() local 45 if (sha1_vector(1, &key, &key_len, tk)) in hmac_sha1_vector() 47 key = tk; in hmac_sha1_vector() 90 forced_memzero(tk, sizeof(tk)); in hmac_sha1_vector()
|
H A D | md5.c | 30 u8 tk[16]; in hmac_md5_vector() local 45 if (md5_vector(1, &key, &key_len, tk)) in hmac_md5_vector() 47 key = tk; in hmac_md5_vector() 91 os_memset(tk, 0, sizeof(tk)); in hmac_md5_vector()
|
/third_party/skia/third_party/externals/freetype/src/tools/ |
H A D | test_afm.c | 32 AFM_TrackKern tk = fi->TrackKerns + i; in dump_fontinfo() local 35 printf( "\t%2d: %5.2f %5.2f %5.2f %5.2f\n", tk->degree, in dump_fontinfo() 36 tk->min_ptsize / 65536., in dump_fontinfo() 37 tk->min_kern / 65536., in dump_fontinfo() 38 tk->max_ptsize / 65536., in dump_fontinfo() 39 tk->max_kern / 65536. ); in dump_fontinfo()
|