| /external/python/cpython3/Tools/unittestgui/ |
| 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 vars for tracking counts of test result types [all …]
|
| /external/python/cpython3/Lib/tkinter/ |
| D | __init__.py | 1 """Wrapper functions for Tcl/Tk. 4 control of widgets. Toplevel widgets are Tk and Toplevel. Other 11 under Tk. 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() 38 import _tkinter # If this fails your Python may not be configured for Tk 124 def _splitdict(tk, v, cut_minus=True, conv=None): argument 132 t = tk.splitlist(v) [all …]
|
| D | tix.py | 33 'The Tix Tk extension is unmaintained, and the tkinter.tix wrapper module' 85 This is a mixin class, assumed to be mixed to Tkinter.Tk 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') 151 option of the TK and Tix widgets. 153 return self.tk.call('tix', 'getbitmap', name) [all …]
|
| D | ttk.py | 3 This module provides classes to allow using Tk themed widget set. 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. 113 # Availability: Tk 8.6, Windows XP and Vista. 244 def _list_from_layouttuple(tk, ltuple): argument 247 ltuple = tk.splitlist(ltuple) 266 val = _list_from_layouttuple(tk, val) 272 def _val_or_dict(tk, options, *args): argument [all …]
|
| /external/python/cpython2/Lib/lib-tk/ |
| D | Tkinter.py | 1 """Wrapper functions for Tcl/Tk. 4 control of widgets. Toplevel widgets are Tk and Toplevel. Other 11 under Tk. 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() 37 # Attempt to configure Tcl/Tk without requiring PATH 39 import _tkinter # If this fails your Python may not be configured for Tk 55 # These are not always defined, e.g. not on Win32 with Tk 8.0 :-( [all …]
|
| D | Tix.py | 32 raise ImportError, "This version of Tix.py requires Tk 4.0 or higher" 34 import _tkinter # If this fails your Python may not be configured for Tk 82 This is a mixin class, assumed to be mixed to Tkinter.Tk 83 that supports the self.tk.call method. 96 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') 148 option of the TK and Tix widgets. [all …]
|
| D | ttk.py | 3 This module provides classes to allow using Tk themed widget set. 6 TIP #48 (http://tip.tcl.tk/48) specified style engine. 31 # Verify if Tk is new enough to not need the Tile package 42 master.tk.eval( 46 master.tk.eval('package require tile') # TclError may be raised here 52 # if caller passes a Tcl script to tk.call, all the values need to 60 """Formats optdict to a tuple to pass it to tk.call. 101 """Formats mapdict to pass it to tk.call. 134 # Availability: Tk 8.6, Windows XP and Vista. 262 def _list_from_layouttuple(tk, ltuple): argument [all …]
|
| D | tkFont.py | 20 """Given the name of a tk named font, returns a Font representation. 71 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")) [all …]
|
| /external/python/cpython2/Lib/lib-tk/test/test_tkinter/ |
| D | test_misc.py | 23 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/cpython2/Lib/idlelib/ |
| D | WidgetRedirector.py | 7 Some Tk operations don't normally pass through tkinter. For example, if a 8 character is inserted into a Text widget by pressing a key, a default Tk 9 binding to the widget's 'insert' operation is activated, and the Tk library 13 to do is to hook the Tk 'insert' operation itself. For one thing, we want 21 instance that represents the tk widget. 26 original Tk widget operation. 33 tk: widget.tk, a convenience attribute, probably not needed. 41 self.tk = tk = widget.tk # widget's root 42 w = widget._w # widget's (full) Tk pathname 45 tk.call("rename", w, self.orig) [all …]
|
| D | macosxSupport.py | 25 Initializes OS X Tk variant values for 30 ws = root.tk.call('tk', 'windowingsystem') 35 elif 'AppKit' in root.tk.call('winfo', 'server', '.'): 44 Returns True if IDLE is using a native OS X Tk (Cocoa or Carbon). 51 Returns True if IDLE is using a Carbon Aqua Tk (instead of the 52 newer Cocoa Aqua Tk). 59 Returns True if IDLE is using a Cocoa Aqua Tk. 66 Returns True if IDLE is using an OS X X11 Tk. 73 Returns a string warning message if the Tk version in use appears to 75 1. Apple Cocoa-based Tk 8.5.7 shipped with Mac OS X 10.6 is unusable. [all …]
|
| /external/python/cpython3/Doc/library/ |
| D | tkinter.rst | 1 :mod:`tkinter` --- Python interface to Tcl/Tk 5 :synopsis: Interface to Tcl/Tk for graphical user interfaces 13 The :mod:`tkinter` package ("Tk interface") is the standard Python interface to 14 the Tcl/Tk GUI toolkit. Both Tk and :mod:`tkinter` are available on most Unix 18 demonstrating a simple Tk interface, letting you know that :mod:`tkinter` is 19 properly installed on your system, and also showing what version of Tcl/Tk is 20 installed, so you can read the Tcl/Tk documentation specific to that version. 22 Tkinter supports a range of Tcl/Tk versions, built either with or 23 without thread support. The official Python binary release bundles Tcl/Tk 8.6 29 additions and changes, and refer to the official Tcl/Tk documentation for [all …]
|
| /external/python/cpython3/Lib/idlelib/ |
| D | redirector.py | 6 Some Tk operations don't normally pass through tkinter. For example, if a 7 character is inserted into a Text widget by pressing a key, a default Tk 8 binding to the widget's 'insert' operation is activated, and the Tk library 12 to do is to hook the Tk 'insert' operation itself. For one thing, we want 20 instance that represents the tk widget. 25 original Tk widget operation. 32 tk: widget.tk, a convenience attribute, probably not needed. 40 self.tk = tk = widget.tk # widget's root 41 w = widget._w # widget's (full) Tk pathname 44 tk.call("rename", w, self.orig) [all …]
|
| D | macosx.py | 36 root = tkinter.Tk() 37 ws = root.tk.call('tk', 'windowingsystem') 42 elif 'AppKit' in root.tk.call('winfo', 'server', '.'): 53 Returns True if IDLE is using a native OS X Tk (Cocoa or Carbon). 61 Returns True if IDLE is using a Carbon Aqua Tk (instead of the 62 newer Cocoa Aqua Tk). 70 Returns True if IDLE is using a Cocoa Aqua Tk. 78 Returns True if IDLE is using an OS X X11 Tk. 132 root.createcommand("::tk::mac::OpenDocument", doOpenFile) 136 root.tk.call('console', 'hide') [all …]
|
| /external/python/cpython2/Doc/library/ |
| D | tkinter.rst | 1 :mod:`Tkinter` --- Python interface to Tcl/Tk 5 :synopsis: Interface to Tcl/Tk for graphical user interfaces 9 The :mod:`Tkinter` module ("Tk interface") is the standard Python interface to 10 the Tk GUI toolkit. Both Tk and :mod:`Tkinter` are available on most Unix 11 platforms, as well as on Windows systems. (Tk itself is not part of Python; it 15 demonstrating a simple Tk interface, letting you know that :mod:`Tkinter` is 16 properly installed on your system, and also showing what version of Tcl/Tk is 17 installed, so you can read the Tcl/Tk documentation specific to that version. 30 The Python Tkinter Topic Guide provides a great deal of information on using Tk 31 from Python and links to other sources of information on Tk. [all …]
|
| /external/scapy/scapy/modules/krack/ |
| D | crypto.py | 137 def gen_TKIP_RC4_key(TSC, TA, TK): argument 141 TK: temporal key 146 assert len(TK) == 16 147 assert all(isinstance(x, (int, long)) for x in TSC + TA + TK) 163 TTAK[0] = _CAST16(TTAK[0] + _SBOX16(TTAK[4] ^ _MK16(TK[1 + j], TK[0 + j]))) 164 TTAK[1] = _CAST16(TTAK[1] + _SBOX16(TTAK[0] ^ _MK16(TK[5 + j], TK[4 + j]))) 165 TTAK[2] = _CAST16(TTAK[2] + _SBOX16(TTAK[1] ^ _MK16(TK[9 + j], TK[8 + j]))) 166 TTAK[3] = _CAST16(TTAK[3] + _SBOX16(TTAK[2] ^ _MK16(TK[13 + j], TK[12 + j]))) 167 TTAK[4] = _CAST16(TTAK[4] + _SBOX16(TTAK[3] ^ _MK16(TK[1 + j], TK[0 + j])) + i) 177 PPK[0] = _CAST16(PPK[0] + _SBOX16(PPK[5] ^ _MK16(TK[1], TK[0]))) [all …]
|
| /external/cronet/third_party/google_benchmark/src/tools/ |
| D | strip_asm.py | 52 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/google-benchmark/tools/ |
| D | strip_asm.py | 53 def is_identifier(tk): argument 54 if len(tk) == 0: 56 first = tk[0] 59 for i in range(1, len(tk)): 60 c = tk[i] 75 for tk in parts: 76 if is_identifier(tk): 77 if tk.startswith("__Z"): 78 tk = tk[1:] 80 tk.startswith("_") [all …]
|
| /external/libcxx/utils/google-benchmark/tools/ |
| D | strip_asm.py | 52 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/tkinter/test/test_tkinter/ |
| 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.splitlist(root.tk.call('after', 'info', idle1)) 123 root.tk.call(script) 133 self.assertIn(idle1, root.tk.call('after', 'info')) [all …]
|
| /external/python/cpython2/Demo/tix/ |
| D | grid.py | 2 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/ |
| D | hanoi.py | 1 # Animated Towers of Hanoi using Tk with optional bitmap file in 12 # This uses Steen Lumholt's Tk interface 31 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() [all …]
|
| /external/python/cpython3/Tools/demo/ |
| D | hanoi.py | 4 Animated Towers of Hanoi using Tk with optional bitmap file in background. 15 from tkinter import Tk, Canvas 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.update() [all …]
|
| /external/hyphenation-patterns/TeX/tk/ |
| D | Android.bp | 34 name: "hyph-tk-hyb", 36 "hyph-tk.pat.txt", 37 "hyph-tk.chr.txt", 38 "hyph-tk.hyp.txt", 40 cmd: "$(location mk_hyb_file) $(location hyph-tk.pat.txt) $(out)", 42 out: ["hyph-tk.hyb"], 46 name: "hyph-tk", 48 ":hyph-tk-hyb", 49 "hyph-tk.lic.txt",
|
| /external/swiftshader/third_party/llvm-16.0/llvm/lib/Target/CSKY/MCTargetDesc/ |
| D | CSKYELFObjectWriter.cpp | 82 auto TK = cast<CSKYMCExpr>(Expr)->getKind(); in getRelocType() local 83 if (TK == CSKYMCExpr::VK_CSKY_ADDR) in getRelocType() 85 if (TK == CSKYMCExpr::VK_CSKY_GOT) in getRelocType() 87 if (TK == CSKYMCExpr::VK_CSKY_GOTOFF) in getRelocType() 89 if (TK == CSKYMCExpr::VK_CSKY_PLT) in getRelocType() 91 if (TK == CSKYMCExpr::VK_CSKY_TLSIE) in getRelocType() 93 if (TK == CSKYMCExpr::VK_CSKY_TLSLE) in getRelocType() 95 if (TK == CSKYMCExpr::VK_CSKY_TLSGD) in getRelocType() 97 if (TK == CSKYMCExpr::VK_CSKY_TLSLDM) in getRelocType() 99 if (TK == CSKYMCExpr::VK_CSKY_TLSLDO) in getRelocType() [all …]
|