Lines Matching refs:tk

116 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',)
634 self.tk.call('tkwait', 'variable', name)
642 self.tk.call('tkwait', 'window', window._w)
650 self.tk.call('tkwait', 'visibility', window._w)
653 self.tk.setvar(name, value)
656 return self.tk.getvar(name)
660 return self.tk.getint(s)
666 return self.tk.getdouble(s)
673 return self.tk.getboolean(s)
683 self.tk.call('focus', self._w)
689 self.tk.call('focus', '-force', self._w)
697 name = self.tk.call('focus')
705 name = self.tk.call('focus', '-displayof', self._w)
711 name = self.tk.call('focus', '-lastfor', self._w)
717 self.tk.call('tk_focusFollowsMouse')
727 name = self.tk.call('tk_focusNext', self._w)
732 name = self.tk.call('tk_focusPrev', self._w)
744 self.tk.call('after', ms)
757 return self.tk.call('after', ms, name)
775 data = self.tk.call('after', 'info', id)
776 script = self.tk.splitlist(data)[0]
780 self.tk.call('after', 'cancel', id)
783 self.tk.call(('bell',) + self._displayof(displayof))
804 return self.tk.call(('clipboard', 'get') + self._options(kw))
807 return self.tk.call(('clipboard', 'get') + self._options(kw))
815 self.tk.call(('clipboard', 'clear') + self._options(kw))
823 self.tk.call(('clipboard', 'append') + self._options(kw)
829 name = self.tk.call('grab', 'current', self._w)
834 self.tk.call('grab', 'release', self._w)
840 self.tk.call('grab', 'set', self._w)
847 self.tk.call('grab', 'set', '-global', self._w)
851 status = self.tk.call('grab', 'status', self._w)
860 self.tk.call('option', 'add', pattern, value, priority)
865 self.tk.call('option', 'clear')
871 return self.tk.call('option', 'get', self._w, name, className)
877 self.tk.call('option', 'readfile', fileName, priority)
881 self.tk.call(('selection', 'clear') + self._options(kw))
895 return self.tk.call(('selection', 'get') + self._options(kw))
898 return self.tk.call(('selection', 'get') + self._options(kw))
912 self.tk.call(('selection', 'handle') + self._options(kw)
919 self.tk.call(('selection', 'own') +
929 name = self.tk.call(('selection', 'own') + self._options(kw))
934 return self.tk.call(('send', interp, cmd) + args)
937 self.tk.call('lower', self._w, belowThis)
940 self.tk.call('raise', self._w, aboveThis)
945 return self.tk.getint(self.tk.call(args))
950 return self.tk.call(args)
953 return self.tk.getint(
954 self.tk.call('winfo', 'cells', self._w))
958 for child in self.tk.splitlist(
959 self.tk.call('winfo', 'children', self._w)):
970 return self.tk.call('winfo', 'class', self._w)
973 return self.tk.getboolean(
974 self.tk.call('winfo', 'colormapfull', self._w))
979 name = self.tk.call(args)
984 return self.tk.getint(self.tk.call('winfo', 'depth', self._w))
987 return self.tk.getint(
988 self.tk.call('winfo', 'exists', self._w))
992 return self.tk.getdouble(self.tk.call(
996 return self.tk.call('winfo', 'geometry', self._w)
999 return self.tk.getint(
1000 self.tk.call('winfo', 'height', self._w))
1003 return int(self.tk.call('winfo', 'id', self._w), 0)
1007 return self.tk.splitlist(self.tk.call(args))
1010 return self.tk.getint(
1011 self.tk.call('winfo', 'ismapped', self._w))
1014 return self.tk.call('winfo', 'manager', self._w)
1017 return self.tk.call('winfo', 'name', self._w)
1020 return self.tk.call('winfo', 'parent', self._w)
1025 return self.tk.call(args)
1028 return self.tk.getint(
1029 self.tk.call('winfo', 'pixels', self._w, number))
1032 return self.tk.getint(
1033 self.tk.call('winfo', 'pointerx', self._w))
1037 self.tk.call('winfo', 'pointerxy', self._w))
1040 return self.tk.getint(
1041 self.tk.call('winfo', 'pointery', self._w))
1044 return self.tk.getint(
1045 self.tk.call('winfo', 'reqheight', self._w))
1048 return self.tk.getint(
1049 self.tk.call('winfo', 'reqwidth', self._w))
1054 self.tk.call('winfo', 'rgb', self._w, color))
1058 return self.tk.getint(
1059 self.tk.call('winfo', 'rootx', self._w))
1063 return self.tk.getint(
1064 self.tk.call('winfo', 'rooty', self._w))
1067 return self.tk.call('winfo', 'screen', self._w)
1071 return self.tk.getint(
1072 self.tk.call('winfo', 'screencells', self._w))
1076 return self.tk.getint(
1077 self.tk.call('winfo', 'screendepth', self._w))
1081 return self.tk.getint(
1082 self.tk.call('winfo', 'screenheight', self._w))
1086 return self.tk.getint(
1087 self.tk.call('winfo', 'screenmmheight', self._w))
1091 return self.tk.getint(
1092 self.tk.call('winfo', 'screenmmwidth', self._w))
1097 return self.tk.call('winfo', 'screenvisual', self._w)
1101 return self.tk.getint(
1102 self.tk.call('winfo', 'screenwidth', self._w))
1106 return self.tk.call('winfo', 'server', self._w)
1109 return self._nametowidget(self.tk.call(
1113 return self.tk.getint(
1114 self.tk.call('winfo', 'viewable', self._w))
1119 return self.tk.call('winfo', 'visual', self._w)
1122 return self.tk.call('winfo', 'visualid', self._w)
1129 data = self.tk.call('winfo', 'visualsavailable', self._w,
1131 data = [self.tk.splitlist(x) for x in self.tk.splitlist(data)]
1143 return self.tk.getint(
1144 self.tk.call('winfo', 'vrootheight', self._w))
1149 return self.tk.getint(
1150 self.tk.call('winfo', 'vrootwidth', self._w))
1154 return self.tk.getint(
1155 self.tk.call('winfo', 'vrootx', self._w))
1159 return self.tk.getint(
1160 self.tk.call('winfo', 'vrooty', self._w))
1163 return self.tk.getint(
1164 self.tk.call('winfo', 'width', self._w))
1168 return self.tk.getint(
1169 self.tk.call('winfo', 'x', self._w))
1173 return self.tk.getint(
1174 self.tk.call('winfo', 'y', self._w))
1177 self.tk.call('update')
1182 self.tk.call('update', 'idletasks')
1191 return self.tk.splitlist(
1192 self.tk.call('bindtags', self._w))
1194 self.tk.call('bindtags', self._w, tagList)
1198 self.tk.call(what + (sequence, func))
1206 self.tk.call(what + (sequence, cmd))
1209 return self.tk.call(what + (sequence,))
1211 return self.tk.splitlist(self.tk.call(what))
1255 self.tk.call('bind', self._w, sequence, '')
1266 self.tk.call('bind', 'all' , sequence, '')
1280 self.tk.call('bind', className , sequence, '')
1283 self.tk.mainloop(n)
1286 self.tk.quit()
1290 return tuple(map(self.tk.getint, self.tk.splitlist(string)))
1294 return tuple(map(self.tk.getdouble, self.tk.splitlist(string)))
1298 return self.tk.getboolean(string)
1313 self.tk.call('tk', 'windowingsystem')
1372 self.tk.createcommand(name, f)
1391 getboolean = self.tk.getboolean
1393 getint = self.tk.getint
1457 for x in self.tk.splitlist(self.tk.call(*args)):
1458 x = self.tk.splitlist(x)
1463 x = self.tk.splitlist(self.tk.call(*args))
1476 self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
1489 return self.tk.call(self._w, 'cget', '-' + key)
1495 splitlist = self.tk.splitlist
1497 splitlist(self.tk.call(self._w, 'configure'))]
1516 return self._getboolean(self.tk.call(
1519 self.tk.call('pack', 'propagate', self._w, flag)
1525 self.tk.splitlist(
1526 self.tk.call('pack', 'slaves', self._w))]
1533 self.tk.splitlist(
1534 self.tk.call(
1542 self.tk.call('grid', 'anchor', self._w, anchor)
1561 return self._getints(self.tk.call(*args)) or None
1571 return self.tk.getdouble(svalue)
1573 return self.tk.getint(svalue)
1590 self.tk,
1591 self.tk.call('grid', command, self._w, index),
1593 res = self.tk.call(
1612 self.tk.call(
1622 return self._getboolean(self.tk.call(
1625 self.tk.call('grid', 'propagate', self._w, flag)
1637 self.tk.call('grid', 'size', self._w)) or None
1648 self.tk.splitlist(self.tk.call(
1659 self.tk.call(args)
1664 self.tk.call(args)
1673 self.tk.call(args)
1678 return self.tk.splitlist(
1679 self.tk.call('event', 'info', virtual))
1685 return self.tk.splitlist(self.tk.call('image', 'names'))
1689 return self.tk.splitlist(self.tk.call('image', 'types'))
1718 res = self.tk.call(self._w, 'xview', *args)
1725 self.tk.call(self._w, 'xview', 'moveto', fraction)
1730 self.tk.call(self._w, 'xview', 'scroll', number, what)
1739 res = self.tk.call(self._w, 'yview', *args)
1746 self.tk.call(self._w, 'yview', 'moveto', fraction)
1751 self.tk.call(self._w, 'yview', 'scroll', number, what)
1764 self.tk.call('wm', 'aspect', self._w,
1788 return self.tk.call(args)
1794 return self.tk.call('wm', 'client', self._w, name)
1804 self.tk.call(args)
1807 for x in self.tk.splitlist(self.tk.call(args))]
1813 return self.tk.call('wm', 'command', self._w, value)
1818 return self.tk.call('wm', 'deiconify', self._w)
1824 return self.tk.call('wm', 'focusmodel', self._w, model)
1832 self.tk.call('wm', 'forget', window)
1836 return self.tk.call('wm', 'frame', self._w)
1841 return self.tk.call('wm', 'geometry', self._w, newGeometry)
1850 return self._getints(self.tk.call(
1857 return self.tk.call('wm', 'group', self._w, pathName)
1869 return self.tk.call('wm', 'iconbitmap', self._w, '-default', default)
1871 return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
1875 return self.tk.call('wm', 'iconify', self._w)
1880 return self.tk.call('wm', 'iconmask', self._w, bitmap)
1885 return self.tk.call('wm', 'iconname', self._w, newName)
1908 self.tk.call('wm', 'iconphoto', self._w, "-default", *args)
1910 self.tk.call('wm', 'iconphoto', self._w, *args)
1915 return self._getints(self.tk.call(
1921 return self.tk.call('wm', 'iconwindow', self._w, pathName)
1927 self.tk.call('wm', 'manage', widget)
1933 return self._getints(self.tk.call(
1940 return self._getints(self.tk.call(
1947 return self._getboolean(self.tk.call(
1954 return self.tk.call('wm', 'positionfrom', self._w, who)
1964 return self.tk.call(
1970 return self.tk.call('wm', 'resizable', self._w, width, height)
1976 return self.tk.call('wm', 'sizefrom', self._w, who)
1981 return self.tk.call('wm', 'state', self._w, newstate)
1985 return self.tk.call('wm', 'title', self._w, string)
1990 return self.tk.call('wm', 'transient', self._w, master)
1995 return self.tk.call('wm', 'withdraw', self._w)
2015 self.tk = None
2023 …self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, …
2031 self.tk.loadtk()
2037 tk_version = self.tk.getvar('tk_version')
2042 tcl_version = str(self.tk.getvar('tcl_version'))
2051 self.tk.createcommand('tkerror', _tkerror)
2052 self.tk.createcommand('exit', _exit)
2062 self.tk.call('destroy', self._w)
2081 self.tk.call('source', class_tcl)
2085 self.tk.call('source', base_tcl)
2101 return getattr(self.tk, attr)
2141 self.tk.call(
2147 self.tk.call('pack', 'forget', self._w)
2152 d = _splitdict(self.tk, self.tk.call('pack', 'info', self._w))
2186 self.tk.call(
2192 self.tk.call('place', 'forget', self._w)
2197 d = _splitdict(self.tk, self.tk.call('place', 'info', self._w))
2224 self.tk.call(
2232 self.tk.call('grid', 'forget', self._w)
2236 self.tk.call('grid', 'remove', self._w)
2240 d = _splitdict(self.tk, self.tk.call('grid', 'info', self._w))
2262 self.tk = master.tk
2298 self.tk.call(
2305 self.tk.call('destroy', self._w)
2311 return self.tk.call((self._w, name) + args)
2381 self.tk.call(self._w, 'flash')
2391 return self.tk.call(self._w, 'invoke')
2408 self.tk.call((self._w, 'addtag') + args)
2439 self.tk.call((self._w, 'bbox') + args)) or None
2443 self.tk.call(self._w, 'bind', tagOrId, sequence, '')
2457 return self.tk.getdouble(self.tk.call(
2462 return self.tk.getdouble(self.tk.call(
2467 return [self.tk.getdouble(x) for x in
2468 self.tk.splitlist(
2469 self.tk.call((self._w, 'coords') + args))]
2478 return self.tk.getint(self.tk.call(
2511 self.tk.call((self._w, 'dchars') + args)
2514 self.tk.call((self._w, 'delete') + args)
2518 self.tk.call((self._w, 'dtag') + args)
2522 self.tk.call((self._w, 'find') + args)) or ()
2551 return self.tk.call((self._w, 'focus') + args)
2554 return self.tk.splitlist(
2555 self.tk.call((self._w, 'gettags') + args))
2559 self.tk.call((self._w, 'icursor') + args)
2562 return self.tk.getint(self.tk.call((self._w, 'index') + args))
2566 self.tk.call((self._w, 'insert') + args)
2569 return self.tk.call(
2587 self.tk.call((self._w, 'lower') + args)
2591 self.tk.call((self._w, 'move') + args)
2597 return self.tk.call((self._w, 'postscript') +
2602 self.tk.call((self._w, 'raise') + args)
2606 self.tk.call((self._w, 'scale') + args)
2609 self.tk.call(self._w, 'scan', 'mark', x, y)
2614 self.tk.call(self._w, 'scan', 'dragto', x, y, gain)
2617 self.tk.call(self._w, 'select', 'adjust', tagOrId, index)
2620 self.tk.call(self._w, 'select', 'clear')
2623 self.tk.call(self._w, 'select', 'from', tagOrId, index)
2626 return self.tk.call(self._w, 'select', 'item') or None
2629 self.tk.call(self._w, 'select', 'to', tagOrId, index)
2632 return self.tk.call(self._w, 'type', tagOrId) or None
2649 self.tk.call(self._w, 'deselect')
2652 self.tk.call(self._w, 'flash')
2655 return self.tk.call(self._w, 'invoke')
2658 self.tk.call(self._w, 'select')
2661 self.tk.call(self._w, 'toggle')
2679 self.tk.call(self._w, 'delete', first, last)
2682 return self.tk.call(self._w, 'get')
2685 self.tk.call(self._w, 'icursor', index)
2688 return self.tk.getint(self.tk.call(
2692 self.tk.call(self._w, 'insert', index, string)
2695 self.tk.call(self._w, 'scan', 'mark', x)
2700 self.tk.call(self._w, 'scan', 'dragto', x)
2703 self.tk.call(self._w, 'selection', 'adjust', index)
2707 self.tk.call(self._w, 'selection', 'clear')
2711 self.tk.call(self._w, 'selection', 'from', index)
2716 return self.tk.getboolean(
2717 self.tk.call(self._w, 'selection', 'present'))
2721 self.tk.call(self._w, 'selection', 'range', start, end)
2725 self.tk.call(self._w, 'selection', 'to', index)
2781 self.tk.call(self._w, 'activate', index)
2785 return self._getints(self.tk.call(self._w, 'bbox', index)) or None
2788 return self._getints(self.tk.call(self._w, 'curselection')) or ()
2791 self.tk.call(self._w, 'delete', first, last)
2795 return self.tk.splitlist(self.tk.call(
2798 return self.tk.call(self._w, 'get', first)
2801 i = self.tk.call(self._w, 'index', index)
2803 return self.tk.getint(i)
2806 self.tk.call((self._w, 'insert', index) + elements)
2809 return self.tk.getint(self.tk.call(
2813 self.tk.call(self._w, 'scan', 'mark', x, y)
2818 self.tk.call(self._w, 'scan', 'dragto', x, y)
2821 self.tk.call(self._w, 'see', index)
2824 self.tk.call(self._w, 'selection', 'anchor', index)
2828 self.tk.call(self._w,
2833 return self.tk.getboolean(self.tk.call(
2839 self.tk.call(self._w, 'selection', 'set', first, last)
2843 return self.tk.getint(self.tk.call(self._w, 'size'))
2846 return self.tk.call(
2871 self.tk.call('tk_popup', self._w, x, y, entry)
2874 self.tk.call(self._w, 'activate', index)
2877 self.tk.call((self._w, 'add', itemType) +
2896 self.tk.call((self._w, 'insert', index, itemType) +
2927 self.tk.call(self._w, 'delete', index1, index2)
2930 return self.tk.call(self._w, 'entrycget', index, '-' + option)
2937 i = self.tk.call(self._w, 'index', index)
2939 return self.tk.getint(i)
2943 return self.tk.call(self._w, 'invoke', index)
2946 self.tk.call(self._w, 'post', x, y)
2949 return self.tk.call(self._w, 'type', index)
2952 self.tk.call(self._w, 'unpost')
2956 return self.tk.getint(self.tk.call(self._w, 'xposition', index))
2959 return self.tk.getint(self.tk.call(
2988 self.tk.call(self._w, 'deselect')
2991 self.tk.call(self._w, 'flash')
2994 return self.tk.call(self._w, 'invoke')
2997 self.tk.call(self._w, 'select')
3013 value = self.tk.call(self._w, 'get')
3015 return self.tk.getint(value)
3017 return self.tk.getdouble(value)
3020 self.tk.call(self._w, 'set', value)
3026 return self._getints(self.tk.call(self._w, 'coords', value))
3030 return self.tk.call(self._w, 'identify', x, y)
3051 return self.tk.call(self._w, 'activate', index) or None
3055 return self.tk.getdouble(
3056 self.tk.call(self._w, 'delta', deltax, deltay))
3060 return self.tk.getdouble(self.tk.call(self._w, 'fraction', x, y))
3064 return self.tk.call(self._w, 'identify', x, y)
3068 return self._getdoubles(self.tk.call(self._w, 'get'))
3072 self.tk.call(self._w, 'set', first, last)
3106 self.tk.call(self._w, 'bbox', index)) or None
3110 return self.tk.getboolean(self.tk.call(
3126 res = self.tk.call(self._w, 'count', *args) or None
3135 return self.tk.getboolean(self.tk.call(self._w, 'debug'))
3136 self.tk.call(self._w, 'debug', boolean)
3139 self.tk.call(self._w, 'delete', index1, index2)
3144 return self._getints(self.tk.call(self._w, 'dlineinfo', index))
3178 self.tk.call(self._w, "dump", *args)
3198 return self.tk.call(self._w, 'edit', *args)
3246 return self.tk.call(self._w, 'get', index1, index2)
3254 return self.tk.call(self._w, "image", "cget", index, option)
3260 return self.tk.call(
3265 return self.tk.call(self._w, "image", "names")
3268 return str(self.tk.call(self._w, 'index', index))
3272 self.tk.call((self._w, 'insert', index, chars) + args)
3276 return self.tk.call(
3280 return self.tk.splitlist(self.tk.call(
3284 self.tk.call(self._w, 'mark', 'set', markName, index)
3287 self.tk.call((self._w, 'mark', 'unset') + markNames)
3290 return self.tk.call(self._w, 'mark', 'next', index) or None
3293 return self.tk.call(self._w, 'mark', 'previous', index) or None
3299 self.tk.call(self._w, 'peer', 'create', newPathName,
3304 return self.tk.splitlist(self.tk.call(self._w, 'peer', 'names'))
3311 self.tk.call(self._w, 'replace', index1, index2, chars, *args)
3314 self.tk.call(self._w, 'scan', 'mark', x, y)
3319 self.tk.call(self._w, 'scan', 'dragto', x, y)
3338 return str(self.tk.call(tuple(args)))
3341 self.tk.call(self._w, 'see', index)
3345 self.tk.call(
3350 self.tk.call(self._w, 'tag', 'bind', tagName, sequence, '')
3367 return self.tk.call(self._w, 'tag', 'cget', tagName, option)
3374 self.tk.call((self._w, 'tag', 'delete') + tagNames)
3378 self.tk.call(self._w, 'tag', 'lower', tagName, belowThis)
3381 return self.tk.splitlist(
3382 self.tk.call(self._w, 'tag', 'names', index))
3387 return self.tk.splitlist(self.tk.call(
3393 return self.tk.splitlist(self.tk.call(
3398 self.tk.call(
3402 return self.tk.splitlist(self.tk.call(
3406 self.tk.call(
3414 return self.tk.call(self._w, 'window', 'cget', index, option)
3421 self.tk.call(
3426 return self.tk.splitlist(
3427 self.tk.call(self._w, 'window', 'names'))
3430 self.tk.call((self._w, 'yview', '-pickplace') + what)
3490 self.tk = getattr(master, 'tk', master)
3501 self.tk.call(('image', 'create', imgtype, name,) + options)
3507 self.tk.call('image', 'delete', self.name)
3512 self.tk.call(self.name, 'configure', '-'+key, value)
3514 return self.tk.call(self.name, 'configure', '-'+key)
3524 self.tk.call((self.name, 'config') + res)
3528 return self.tk.getint(
3529 self.tk.call('image', 'height', self.name))
3532 return self.tk.call('image', 'type', self.name)
3535 return self.tk.getint(
3536 self.tk.call('image', 'width', self.name))
3548 self.tk.call(self.name, 'blank')
3551 return self.tk.call(self.name, 'cget', '-' + option)
3554 return self.tk.call(self.name, 'cget', '-' + key)
3558 destImage = PhotoImage(master=self.tk)
3559 self.tk.call(destImage, 'copy', self.name)
3566 destImage = PhotoImage(master=self.tk)
3568 self.tk.call(destImage, 'copy', self.name, '-zoom',x,y)
3575 destImage = PhotoImage(master=self.tk)
3577 self.tk.call(destImage, 'copy', self.name, '-subsample',x,y)
3581 return self.tk.call(self.name, 'get', x, y)
3590 self.tk.call(args)
3600 self.tk.call(args)
3611 return _default_root.tk.splitlist(_default_root.tk.call('image', 'names'))
3614 return _default_root.tk.splitlist(_default_root.tk.call('image', 'types'))
3660 return self._getints(self.tk.call(self._w, 'bbox', index)) or None
3671 return self.tk.call(self._w, 'delete', first, last)
3675 return self.tk.call(self._w, 'get')
3683 return self.tk.call(self._w, 'icursor', index)
3690 return self.tk.call(self._w, 'identify', x, y)
3695 return self.tk.call(self._w, 'index', index)
3702 return self.tk.call(self._w, 'insert', index, s)
3710 return self.tk.call(self._w, 'invoke', element)
3715 self.tk.call((self._w, 'scan') + args)) or ()
3741 self.tk.call((self._w, 'selection') + args)) or ()
3771 return self.tk.call(self._w, 'selection', 'element', element)
3823 self.tk.call((self._w, 'add', child) + self._options(kw))
3830 self.tk.call(self._w, 'forget', child)
3843 return self.tk.call(self._w, 'identify', x, y)
3848 self.tk.call((self._w, 'proxy') + args)) or ()
3868 self.tk.call((self._w, 'sash') + args)) or ()
3901 return self.tk.call(
3977 self.tk.call((self._w, 'paneconfigure', tagOrId) +
3983 return self.tk.splitlist(self.tk.call(self._w, 'panes'))