Home
last modified time | relevance | path

Searched refs:tk (Results 1 – 25 of 605) sorted by relevance

12345678910>>...25

/external/python/cpython3/Lib/tkinter/
D__init__.py116 def _splitdict(tk, v, cut_minus=True, conv=None): argument
124 t = tk.splitlist(v)
318 self._tk = master.tk
560 _default_root.tk.mainloop(n)
569 return _default_root.tk.getboolean(s)
592 self.tk.deletecommand(name)
599 self.tk.deletecommand(name)
611 return self.tk.getboolean(self.tk.call(
615 self.tk.call('tk_bisque')
627 self.tk.call(('tk_setPalette',)
[all …]
Dtix.py92 return self.tk.call('tix', 'addbitmapdir', directory)
99 return self.tk.call('tix', 'cget', option)
121 return self.tk.call(('tix', 'configure') + self._options(cnf))
133 return self.tk.call('tix', 'filedialog', dlgclass)
135 return self.tk.call('tix', 'filedialog')
146 return self.tk.call('tix', 'getbitmap', name)
160 return self.tk.call('tix', 'getimage', name)
177 return self.tk.call('tix', 'option', 'get', name)
195 return self.tk.call('tix', 'resetoptions', newScheme, newFontSet, newScmPrio)
197 return self.tk.call('tix', 'resetoptions', newScheme, newFontSet)
[all …]
Dttk.py44 master.tk.eval(
48 master.tk.eval('package require tile') # TclError may be raised here
262 def _list_from_layouttuple(tk, ltuple): argument
265 ltuple = tk.splitlist(ltuple)
284 val = _list_from_layouttuple(tk, val)
290 def _val_or_dict(tk, options, *args): argument
299 res = tk.call(*(args + options))
304 return _splitdict(tk, res, conv=_tclobj_to_py)
375 self.tk = self.master.tk
386 result = _val_or_dict(self.tk, kw, self._name, "configure", style)
[all …]
Dfont.py72 tk = getattr(root, 'tk', root)
75 font = tk.splitlist(tk.call("font", "actual", font))
85 if self.name not in tk.splitlist(tk.call("font", "names")):
90 tk.call("font", "configure", self.name, *font)
93 tk.call("font", "create", self.name, *font)
95 self._tk = tk
96 self._split = tk.splitlist
97 self._call = tk.call
184 return root.tk.splitlist(root.tk.call("font", "families", *args))
191 return root.tk.splitlist(root.tk.call("font", "names"))
/external/python/cpython3/Tools/unittestgui/
Dunittestgui.py36 import tkinter as tk namespace
214 self.dirVar = tk.StringVar()
218 self.testPatternVar = tk.StringVar()
225 tk.Label(master, text="Top Level Directory").grid(row=0)
226 self.e1 = tk.Entry(master, textvariable=self.dirVar)
228 tk.Button(master, text="...",
231 tk.Label(master, text="Test File Pattern").grid(row=1)
232 self.e2 = tk.Entry(master, textvariable = self.testPatternVar)
254 self.statusVar = tk.StringVar()
258 self.runCountVar = tk.IntVar()
[all …]
/external/python/cpython2/Lib/lib-tk/
DTkinter.py129 def _splitdict(tk, v, cut_minus=True, conv=None): argument
137 t = tk.splitlist(v)
245 self._tk = master.tk
422 _default_root.tk.mainloop(n)
430 return _default_root.tk.getboolean(s)
448 self.tk.deletecommand(name)
455 self.tk.deletecommand(name)
467 return self.tk.getboolean(self.tk.call(
471 self.tk.call('tk_bisque')
483 self.tk.call(('tk_setPalette',)
[all …]
DTix.py96 return self.tk.call('tix', 'addbitmapdir', directory)
103 return self.tk.call('tix', 'cget', option)
125 return self.tk.call(('tix', 'configure') + self._options(cnf))
137 return self.tk.call('tix', 'filedialog', dlgclass)
139 return self.tk.call('tix', 'filedialog')
150 return self.tk.call('tix', 'getbitmap', name)
164 return self.tk.call('tix', 'getimage', name)
181 return self.tk.call('tix', 'option', 'get', name)
199 return self.tk.call('tix', 'resetoptions', newScheme, newFontSet, newScmPrio)
201 return self.tk.call('tix', 'resetoptions', newScheme, newFontSet)
[all …]
Dttk.py42 master.tk.eval(
46 master.tk.eval('package require tile') # TclError may be raised here
262 def _list_from_layouttuple(tk, ltuple): argument
265 ltuple = tk.splitlist(ltuple)
284 val = _list_from_layouttuple(tk, val)
290 def _val_or_dict(tk, options, *args): argument
299 res = tk.call(*(args + options))
304 return _splitdict(tk, res, conv=_tclobj_to_py)
375 self.tk = self.master.tk
386 return _val_or_dict(self.tk, kw, self._name, "configure", style)
[all …]
DtkFont.py71 tk = getattr(root, 'tk', root)
74 font = tk.splitlist(tk.call("font", "actual", font))
84 if self.name not in tk.splitlist(tk.call("font", "names")):
88 tk.call("font", "configure", self.name, *font)
91 tk.call("font", "create", self.name, *font)
93 self._tk = tk
94 self._split = tk.splitlist
95 self._call = tk.call
172 return root.tk.splitlist(root.tk.call("font", "families"))
178 return root.tk.splitlist(root.tk.call("font", "names"))
/external/python/cpython2/Lib/lib-tk/test/test_tkinter/
Dtest_misc.py23 self.assertIn(timer1, root.tk.call('after', 'info'))
24 (script, _) = root.tk.splitlist(root.tk.call('after', 'info', timer1))
28 root.tk.call(script)
38 self.assertIn(timer1, root.tk.call('after', 'info'))
39 (script, _) = root.tk.splitlist(root.tk.call('after', 'info', timer1))
43 root.tk.call(script)
55 self.assertIn(idle1, root.tk.call('after', 'info'))
56 (script, _) = root.tk.splitlist(root.tk.call('after', 'info', idle1))
60 root.tk.call(script)
70 self.assertIn(idle1, root.tk.call('after', 'info'))
[all …]
/external/python/cpython3/Lib/tkinter/test/test_tkinter/
Dtest_misc.py64 self.assertIn(timer1, root.tk.call('after', 'info'))
65 (script, _) = root.tk.splitlist(root.tk.call('after', 'info', timer1))
69 root.tk.call(script)
79 self.assertIn(timer1, root.tk.call('after', 'info'))
80 (script, _) = root.tk.splitlist(root.tk.call('after', 'info', timer1))
84 root.tk.call(script)
96 self.assertIn(idle1, root.tk.call('after', 'info'))
97 (script, _) = root.tk.splitlist(root.tk.call('after', 'info', idle1))
101 root.tk.call(script)
111 self.assertIn(idle1, root.tk.call('after', 'info'))
[all …]
/external/google-benchmark/tools/
Dstrip_asm.py52 def is_identifier(tk): argument
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[1:]
77 elif tk.startswith('_') and len(tk) > 1 and \
[all …]
/external/libcxx/utils/google-benchmark/tools/
Dstrip_asm.py52 def is_identifier(tk): argument
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[1:]
77 elif tk.startswith('_') and len(tk) > 1 and \
[all …]
/external/python/cpython3/Lib/idlelib/
Dredirector.py40 self.tk = tk = widget.tk # widget's root
44 tk.call("rename", w, self.orig)
47 tk.createcommand(w, self.dispatch)
59 tk = widget.tk
62 tk.deletecommand(w)
63 tk.call("rename", self.orig, w)
64 del self.widget, self.tk # Should not be needed
115 return self.tk.call((self.orig, operation) + args)
139 self.tk = redir.tk # redundant with self.redir
142 self.tk_call = redir.tk.call
/external/python/cpython2/Lib/idlelib/
DWidgetRedirector.py41 self.tk = tk = widget.tk # widget's root
45 tk.call("rename", w, self.orig)
48 tk.createcommand(w, self.dispatch)
59 tk = widget.tk
62 tk.deletecommand(w)
63 tk.call("rename", self.orig, w)
64 del self.widget, self.tk # Should not be needed
115 return self.tk.call((self.orig, operation) + args)
139 self.tk = redir.tk # redundant with self.redir
142 self.tk_call = redir.tk.call
/external/toybox/toys/pending/
Dsyslogd.c100 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 = "!=*"; *tk; tk++, bits <<= 1) { in resolve_config()
130 if (*lvl == *tk) { in resolve_config()
156 char *confline, *tk[2]; in parse_config_file() local
[all …]
/external/python/cpython2/Demo/tix/
Dgrid.py2 import Tix as tk namespace
5 r= tk.Tk()
8 l=tk.Label(r, name="a_label")
11 class MyGrid(tk.Grid):
14 tk.Grid.__init__(self, *args, **kwargs)
20 g.pack(fill=tk.BOTH)
25 c = tk.Button(r, text="Close", command=r.destroy)
28 tk.mainloop()
/external/python/cpython2/Demo/tkinter/guido/
Delectrons.py24 self.tk = tk = Tk()
25 self.canvas = c = Canvas(tk)
27 width, height = tk.getint(c['width']), tk.getint(c['height'])
41 self.tk.update()
49 self.tk.update()
58 self.tk.destroy()
Dwish.py6 tk = _tkinter.create(os.environ['DISPLAY'], 'wish', 'Tk', 1) variable
7 tk.call('update')
19 if tk.getboolean(tk.call('info', 'complete', cmd)):
20 tk.record(line)
22 result = tk.call('eval', cmd)
Dhanoi.py31 self.tk = tk = Tk()
32 self.canvas = c = Canvas(tk)
34 width, height = tk.getint(c['width']), tk.getint(c['height'])
57 self.tk.update()
74 self.tk.update()
75 self.tk.after(25)
100 self.tk.update()
111 self.tk.update()
120 self.tk.update()
/external/python/cpython3/Lib/test/
Dtest_tcl.py50 self.wantobjects = self.interp.tk.wantobjects()
140 tcl = self.interp.tk
161 tcl = self.interp.tk
176 tcl = self.interp.tk
473 self.addCleanup(self.interp.tk.deletecommand, 'testfunc')
521 splitlist = self.interp.tk.splitlist
522 call = self.interp.tk.call
569 split = self.interp.tk.split
570 call = self.interp.tk.call
619 tcl = self.interp.tk
[all …]
/external/python/cpython2/Demo/tix/samples/
DCmpImg.py164 w.hdd_img.tk.call(str(w.hdd_img), 'add', 'line')
165 w.hdd_img.tk.call(str(w.hdd_img), 'add', 'text', '-text', 'Hard Disk',
167 w.hdd_img.tk.call(str(w.hdd_img), 'add', 'space', '-width', '7')
168 w.hdd_img.tk.call(str(w.hdd_img), 'add', 'image', '-image', w.img1)
176 w.net_img.tk.call(str(w.net_img), 'add', 'line')
177 w.net_img.tk.call(str(w.net_img), 'add', 'text', '-text', 'Network',
179 w.net_img.tk.call(str(w.net_img), 'add', 'space', '-width', '7')
180 w.net_img.tk.call(str(w.net_img), 'add', 'image', '-image', w.img0)
/external/ipsec-tools/src/racoon/missing/crypto/rijndael/
Drijndael-alg-fst.c45 #define tk xtk.x8 in rijndaelKeySched() macro
49 *((word32*)tk[j]) = *((word32*)k[j]); in rijndaelKeySched()
56 *((word32*)W[r][t]) = *((word32*)tk[j]); in rijndaelKeySched()
66 tk[0][0] ^= S[tk[KC-1][1]]; in rijndaelKeySched()
67 tk[0][1] ^= S[tk[KC-1][2]]; in rijndaelKeySched()
68 tk[0][2] ^= S[tk[KC-1][3]]; in rijndaelKeySched()
69 tk[0][3] ^= S[tk[KC-1][0]]; in rijndaelKeySched()
70 tk[0][0] ^= rcon[rconpointer++]; in rijndaelKeySched()
74 *((word32*)tk[j]) ^= *((word32*)tk[j-1]); in rijndaelKeySched()
78 *((word32*)tk[j]) ^= *((word32*)tk[j-1]); in rijndaelKeySched()
[all …]
/external/python/cpython3/Tools/demo/
Dhanoi.py32 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.update()
121 self.tk.update()
/external/python/cpython2/Lib/idlelib/idle_test/
Dhtest.py70 import Tkinter as tk namespace
337 root = tk.Tk()
343 frameLabel = tk.Frame(root, padx=10)
345 text = tk.Text(frameLabel, wrap='word')
347 scrollbar = tk.Scrollbar(frameLabel, command=text.yview)
368 test_name = [tk.StringVar('')]
393 button = tk.Button(root, textvariable=test_name[0], command=run_test)
395 next_button = tk.Button(root, text="Next", command=next)

12345678910>>...25