• Home
  • Raw
  • Download

Lines Matching full:tk

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)
303 Tk is used for windows without an explicit parent window.
320 root = Tk()
334 root = Tk()
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.deletecommand(name)
695 self.tk.deletecommand(name)
708 return self.tk.getboolean(self.tk.call(
712 """Change the color scheme to light brown as used in Tk 3.6 and before."""
713 self.tk.call('tk_bisque')
718 A single color as argument will cause that all colors of Tk
726 self.tk.call(('tk_setPalette',)
734 self.tk.call('tkwait', 'variable', name)
743 self.tk.call('tkwait', 'window', window._w)
752 self.tk.call('tkwait', 'visibility', window._w)
756 self.tk.setvar(name, value)
760 return self.tk.getvar(name)
764 return self.tk.getint(s)
770 return self.tk.getdouble(s)
777 return self.tk.getboolean(s)
787 self.tk.call('focus', self._w)
794 self.tk.call('focus', '-force', self._w)
803 name = self.tk.call('focus')
812 name = self.tk.call('focus', '-displayof', self._w)
819 name = self.tk.call('focus', '-lastfor', self._w)
826 self.tk.call('tk_focusFollowsMouse')
837 name = self.tk.call('tk_focusNext', self._w)
843 name = self.tk.call('tk_focusPrev', self._w)
856 self.tk.call('after', ms)
873 return self.tk.call('after', ms, name)
893 data = self.tk.call('after', 'info', id)
894 script = self.tk.splitlist(data)[0]
898 self.tk.call('after', 'cancel', id)
902 self.tk.call(('bell',) + self._displayof(displayof))
923 return self.tk.call(('clipboard', 'get') + self._options(kw))
926 return self.tk.call(('clipboard', 'get') + self._options(kw))
929 """Clear the data in the Tk clipboard.
934 self.tk.call(('clipboard', 'clear') + self._options(kw))
937 """Append STRING to the Tk clipboard.
943 self.tk.call(('clipboard', 'append') + self._options(kw)
950 name = self.tk.call('grab', 'current', self._w)
956 self.tk.call('grab', 'release', self._w)
963 self.tk.call('grab', 'set', self._w)
971 self.tk.call('grab', 'set', '-global', self._w)
976 status = self.tk.call('grab', 'status', self._w)
986 self.tk.call('option', 'add', pattern, value, priority)
992 self.tk.call('option', 'clear')
999 return self.tk.call('option', 'get', self._w, name, className)
1006 self.tk.call('option', 'readfile', fileName, priority)
1011 self.tk.call(('selection', 'clear') + self._options(kw))
1026 return self.tk.call(('selection', 'get') + self._options(kw))
1029 return self.tk.call(('selection', 'get') + self._options(kw))
1044 self.tk.call(('selection', 'handle') + self._options(kw)
1052 self.tk.call(('selection', 'own') +
1063 name = self.tk.call(('selection', 'own') + self._options(kw))
1069 return self.tk.call(('send', interp, cmd) + args)
1073 self.tk.call('lower', self._w, belowThis)
1077 self.tk.call('raise', self._w, aboveThis)
1083 patchlevel = self.tk.call('info', 'patchlevel')
1089 return self.tk.getint(self.tk.call(args))
1095 return self.tk.call(args)
1099 return self.tk.getint(
1100 self.tk.call('winfo', 'cells', self._w))
1105 for child in self.tk.splitlist(
1106 self.tk.call('winfo', 'children', self._w)):
1117 return self.tk.call('winfo', 'class', self._w)
1121 return self.tk.getboolean(
1122 self.tk.call('winfo', 'colormapfull', self._w))
1128 name = self.tk.call(args)
1134 return self.tk.getint(self.tk.call('winfo', 'depth', self._w))
1138 return self.tk.getint(
1139 self.tk.call('winfo', 'exists', self._w))
1144 return self.tk.getdouble(self.tk.call(
1149 return self.tk.call('winfo', 'geometry', self._w)
1153 return self.tk.getint(
1154 self.tk.call('winfo', 'height', self._w))
1158 return int(self.tk.call('winfo', 'id', self._w), 0)
1163 return self.tk.splitlist(self.tk.call(args))
1167 return self.tk.getint(
1168 self.tk.call('winfo', 'ismapped', self._w))
1172 return self.tk.call('winfo', 'manager', self._w)
1176 return self.tk.call('winfo', 'name', self._w)
1180 return self.tk.call('winfo', 'parent', self._w)
1186 return self.tk.call(args)
1190 return self.tk.getint(
1191 self.tk.call('winfo', 'pixels', self._w, number))
1195 return self.tk.getint(
1196 self.tk.call('winfo', 'pointerx', self._w))
1201 self.tk.call('winfo', 'pointerxy', self._w))
1205 return self.tk.getint(
1206 self.tk.call('winfo', 'pointery', self._w))
1210 return self.tk.getint(
1211 self.tk.call('winfo', 'reqheight', self._w))
1215 return self.tk.getint(
1216 self.tk.call('winfo', 'reqwidth', self._w))
1221 self.tk.call('winfo', 'rgb', self._w, color))
1226 return self.tk.getint(
1227 self.tk.call('winfo', 'rootx', self._w))
1232 return self.tk.getint(
1233 self.tk.call('winfo', 'rooty', self._w))
1237 return self.tk.call('winfo', 'screen', self._w)
1242 return self.tk.getint(
1243 self.tk.call('winfo', 'screencells', self._w))
1248 return self.tk.getint(
1249 self.tk.call('winfo', 'screendepth', self._w))
1254 return self.tk.getint(
1255 self.tk.call('winfo', 'screenheight', self._w))
1260 return self.tk.getint(
1261 self.tk.call('winfo', 'screenmmheight', self._w))
1266 return self.tk.getint(
1267 self.tk.call('winfo', 'screenmmwidth', self._w))
1273 return self.tk.call('winfo', 'screenvisual', self._w)
1278 return self.tk.getint(
1279 self.tk.call('winfo', 'screenwidth', self._w))
1284 return self.tk.call('winfo', 'server', self._w)
1288 return self._nametowidget(self.tk.call(
1293 return self.tk.getint(
1294 self.tk.call('winfo', 'viewable', self._w))
1300 return self.tk.call('winfo', 'visual', self._w)
1304 return self.tk.call('winfo', 'visualid', self._w)
1312 data = self.tk.call('winfo', 'visualsavailable', self._w,
1314 data = [self.tk.splitlist(x) for x in self.tk.splitlist(data)]
1329 return self.tk.getint(
1330 self.tk.call('winfo', 'vrootheight', self._w))
1336 return self.tk.getint(
1337 self.tk.call('winfo', 'vrootwidth', self._w))
1342 return self.tk.getint(
1343 self.tk.call('winfo', 'vrootx', self._w))
1348 return self.tk.getint(
1349 self.tk.call('winfo', 'vrooty', self._w))
1353 return self.tk.getint(
1354 self.tk.call('winfo', 'width', self._w))
1359 return self.tk.getint(
1360 self.tk.call('winfo', 'x', self._w))
1365 return self.tk.getint(
1366 self.tk.call('winfo', 'y', self._w))
1370 self.tk.call('update')
1376 self.tk.call('update', 'idletasks')
1386 return self.tk.splitlist(
1387 self.tk.call('bindtags', self._w))
1389 self.tk.call('bindtags', self._w, tagList)
1394 self.tk.call(what + (sequence, func))
1402 self.tk.call(what + (sequence, cmd))
1405 return self.tk.call(what + (sequence,))
1407 return self.tk.splitlist(self.tk.call(what))
1453 self.tk.call('bind', self._w, sequence, '')
1466 self.tk.call('bind', 'all' , sequence, '')
1481 self.tk.call('bind', className , sequence, '')
1484 """Call the mainloop of Tk."""
1485 self.tk.mainloop(n)
1489 self.tk.quit()
1494 return tuple(map(self.tk.getint, self.tk.splitlist(string)))
1499 return tuple(map(self.tk.getdouble, self.tk.splitlist(string)))
1504 return self.tk.getboolean(string)
1521 self.tk.call('tk', 'windowingsystem')
1584 self.tk.createcommand(name, f)
1606 getboolean = self.tk.getboolean
1608 getint = self.tk.getint
1610 """Tk changed behavior in 8.4.2, returning "??" rather more often."""
1673 for x in self.tk.splitlist(self.tk.call(*args)):
1674 x = self.tk.splitlist(x)
1679 x = self.tk.splitlist(self.tk.call(*args))
1692 self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
1708 return self.tk.call(self._w, 'cget', '-' + key)
1717 splitlist = self.tk.splitlist
1719 splitlist(self.tk.call(self._w, 'configure'))]
1740 return self._getboolean(self.tk.call(
1743 self.tk.call('pack', 'propagate', self._w, flag)
1751 self.tk.splitlist(
1752 self.tk.call('pack', 'slaves', self._w))]
1761 self.tk.splitlist(
1762 self.tk.call(
1767 def grid_anchor(self, anchor=None): # new in Tk 8.5
1772 self.tk.call('grid', 'anchor', self._w, anchor)
1793 return self._getints(self.tk.call(*args)) or None
1804 return self.tk.getdouble(svalue)
1806 return self.tk.getint(svalue)
1823 self.tk,
1824 self.tk.call('grid', command, self._w, index),
1826 res = self.tk.call(
1847 self.tk.call(
1858 return self._getboolean(self.tk.call(
1861 self.tk.call('grid', 'propagate', self._w, flag)
1876 self.tk.call('grid', 'size', self._w)) or None
1889 self.tk.splitlist(self.tk.call(
1892 # Support for the "event" command, new in Tk 4.2.
1900 self.tk.call(args)
1905 self.tk.call(args)
1914 self.tk.call(args)
1919 return self.tk.splitlist(
1920 self.tk.call('event', 'info', virtual))
1926 return self.tk.splitlist(self.tk.call('image', 'names'))
1930 return self.tk.splitlist(self.tk.call('image', 'types'))
1961 res = self.tk.call(self._w, 'xview', *args)
1968 self.tk.call(self._w, 'xview', 'moveto', fraction)
1973 self.tk.call(self._w, 'xview', 'scroll', number, what)
1982 res = self.tk.call(self._w, 'yview', *args)
1989 self.tk.call(self._w, 'yview', 'moveto', fraction)
1994 self.tk.call(self._w, 'yview', 'scroll', number, what)
2007 self.tk.call('wm', 'aspect', self._w,
2032 return self.tk.call(args)
2039 return self.tk.call('wm', 'client', self._w, name)
2048 wlist = (wlist,) # Tk needs a list of windows here
2051 self.tk.call(args)
2054 for x in self.tk.splitlist(self.tk.call(args))]
2062 return self.tk.call('wm', 'command', self._w, value)
2069 return self.tk.call('wm', 'deiconify', self._w)
2077 return self.tk.call('wm', 'focusmodel', self._w, model)
2081 def wm_forget(self, window): # new in Tk 8.5
2087 self.tk.call('wm', 'forget', window)
2093 return self.tk.call('wm', 'frame', self._w)
2100 return self.tk.call('wm', 'geometry', self._w, newGeometry)
2111 return self._getints(self.tk.call(
2120 return self.tk.call('wm', 'group', self._w, pathName)
2131 (example: root.iconbitmap(default='myicon.ico') ). See Tk
2134 return self.tk.call('wm', 'iconbitmap', self._w, '-default', default)
2136 return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
2142 return self.tk.call('wm', 'iconify', self._w)
2149 return self.tk.call('wm', 'iconmask', self._w, bitmap)
2156 return self.tk.call('wm', 'iconname', self._w, newName)
2160 def wm_iconphoto(self, default=False, *args): # new in Tk 8.5
2181 self.tk.call('wm', 'iconphoto', self._w, "-default", *args)
2183 self.tk.call('wm', 'iconphoto', self._w, *args)
2190 return self._getints(self.tk.call(
2198 return self.tk.call('wm', 'iconwindow', self._w, pathName)
2202 def wm_manage(self, widget): # new in Tk 8.5
2206 self.tk.call('wm', 'manage', widget)
2214 return self._getints(self.tk.call(
2223 return self._getints(self.tk.call(
2232 return self._getboolean(self.tk.call(
2241 return self.tk.call('wm', 'positionfrom', self._w, who)
2253 return self.tk.call(
2261 return self.tk.call('wm', 'resizable', self._w, width, height)
2269 return self.tk.call('wm', 'sizefrom', self._w, who)
2276 return self.tk.call('wm', 'state', self._w, newstate)
2282 return self.tk.call('wm', 'title', self._w, string)
2289 return self.tk.call('wm', 'transient', self._w, master)
2296 return self.tk.call('wm', 'withdraw', self._w)
2301 class Tk(Misc, Wm): class
2302 """Toplevel widget of Tk which represents mostly the main window
2306 def __init__(self, screenName=None, baseName=None, className='Tk',
2317 # ensure that self.tk is always _something_.
2318 self.tk = None
2326 …self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, …
2335 self.tk.loadtk()
2342 tk_version = self.tk.getvar('tk_version')
2344 raise RuntimeError("tk.h version (%s) doesn't match libtk.a version (%s)"
2347 tcl_version = str(self.tk.getvar('tcl_version'))
2356 self.tk.createcommand('tkerror', _tkerror)
2357 self.tk.createcommand('exit', _exit)
2368 self.tk.call('destroy', self._w)
2388 self.tk.call('source', class_tcl)
2392 self.tk.call('source', base_tcl)
2410 return getattr(self.tk, attr)
2427 def Tcl(screenName=None, baseName=None, className='Tk', useTk=False):
2428 return Tk(screenName, baseName, className, useTk)
2452 self.tk.call(
2460 self.tk.call('pack', 'forget', self._w)
2467 d = _splitdict(self.tk, self.tk.call('pack', 'info', self._w))
2504 self.tk.call(
2512 self.tk.call('place', 'forget', self._w)
2519 d = _splitdict(self.tk, self.tk.call('place', 'info', self._w))
2549 self.tk.call(
2559 self.tk.call('grid', 'forget', self._w)
2565 self.tk.call('grid', 'remove', self._w)
2570 d = _splitdict(self.tk, self.tk.call('grid', 'info', self._w))
2591 self.tk = master.tk
2628 self.tk.call(
2636 self.tk.call('destroy', self._w)
2642 # XXX Obsolete -- better use self.tk.call directly!
2643 return self.tk.call((self._w, name) + args)
2718 self.tk.call(self._w, 'flash')
2728 return self.tk.call(self._w, 'invoke')
2748 self.tk.call((self._w, 'addtag') + args)
2787 self.tk.call((self._w, 'bbox') + args)) or None
2792 self.tk.call(self._w, 'bind', tagOrId, sequence, '')
2808 return self.tk.getdouble(self.tk.call(
2814 return self.tk.getdouble(self.tk.call(
2820 return [self.tk.getdouble(x) for x in
2821 self.tk.splitlist(
2822 self.tk.call((self._w, 'coords') + args))]
2832 return self.tk.getint(self.tk.call(
2875 self.tk.call((self._w, 'dchars') + args)
2879 self.tk.call((self._w, 'delete') + args)
2884 self.tk.call((self._w, 'dtag') + args)
2889 self.tk.call((self._w, 'find') + args)) or ()
2926 return self.tk.call((self._w, 'focus') + args)
2930 return self.tk.splitlist(
2931 self.tk.call((self._w, 'gettags') + args))
2936 self.tk.call((self._w, 'icursor') + args)
2940 return self.tk.getint(self.tk.call((self._w, 'index') + args))
2945 self.tk.call((self._w, 'insert') + args)
2949 return self.tk.call(
2970 self.tk.call((self._w, 'lower') + args)
2976 self.tk.call((self._w, 'move') + args)
2985 self.tk.call(self._w, 'moveto', tagOrId, x, y)
2992 return self.tk.call((self._w, 'postscript') +
2998 self.tk.call((self._w, 'raise') + args)
3004 self.tk.call((self._w, 'scale') + args)
3008 self.tk.call(self._w, 'scan', 'mark', x, y)
3014 self.tk.call(self._w, 'scan', 'dragto', x, y, gain)
3018 self.tk.call(self._w, 'select', 'adjust', tagOrId, index)
3022 self.tk.call(self._w, 'select', 'clear')
3026 self.tk.call(self._w, 'select', 'from', tagOrId, index)
3030 return self.tk.call(self._w, 'select', 'item') or None
3034 self.tk.call(self._w, 'select', 'to', tagOrId, index)
3038 return self.tk.call(self._w, 'type', tagOrId) or None
3068 self.tk.call(self._w, 'deselect')
3072 self.tk.call(self._w, 'flash')
3076 return self.tk.call(self._w, 'invoke')
3080 self.tk.call(self._w, 'select')
3084 self.tk.call(self._w, 'toggle')
3105 self.tk.call(self._w, 'delete', first, last)
3109 return self.tk.call(self._w, 'get')
3113 self.tk.call(self._w, 'icursor', index)
3117 return self.tk.getint(self.tk.call(
3122 self.tk.call(self._w, 'insert', index, string)
3126 self.tk.call(self._w, 'scan', 'mark', x)
3132 self.tk.call(self._w, 'scan', 'dragto', x)
3136 self.tk.call(self._w, 'selection', 'adjust', index)
3142 self.tk.call(self._w, 'selection', 'clear')
3148 self.tk.call(self._w, 'selection', 'from', index)
3155 return self.tk.getboolean(
3156 self.tk.call(self._w, 'selection', 'present'))
3162 self.tk.call(self._w, 'selection', 'range', start, end)
3168 self.tk.call(self._w, 'selection', 'to', index)
3232 self.tk.call(self._w, 'activate', index)
3237 return self._getints(self.tk.call(self._w, 'bbox', index)) or None
3241 return self._getints(self.tk.call(self._w, 'curselection')) or ()
3245 self.tk.call(self._w, 'delete', first, last)
3250 return self.tk.splitlist(self.tk.call(
3253 return self.tk.call(self._w, 'get', first)
3257 i = self.tk.call(self._w, 'index', index)
3259 return self.tk.getint(i)
3263 self.tk.call((self._w, 'insert', index) + elements)
3267 return self.tk.getint(self.tk.call(
3272 self.tk.call(self._w, 'scan', 'mark', x, y)
3278 self.tk.call(self._w, 'scan', 'dragto', x, y)
3282 self.tk.call(self._w, 'see', index)
3286 self.tk.call(self._w, 'selection', 'anchor', index)
3292 self.tk.call(self._w,
3299 return self.tk.getboolean(self.tk.call(
3307 self.tk.call(self._w, 'selection', 'set', first, last)
3313 return self.tk.getint(self.tk.call(self._w, 'size'))
3317 return self.tk.call(
3347 self.tk.call('tk_popup', self._w, x, y, entry)
3351 self.tk.call(self._w, 'activate', index)
3355 self.tk.call((self._w, 'add', itemType) +
3380 self.tk.call((self._w, 'insert', index, itemType) +
3417 self.tk.call(self._w, 'delete', index1, index2)
3421 return self.tk.call(self._w, 'entrycget', index, '-' + option)
3431 i = self.tk.call(self._w, 'index', index)
3432 return None if i in ('', 'none') else self.tk.getint(i) # GH-103685.
3437 return self.tk.call(self._w, 'invoke', index)
3441 self.tk.call(self._w, 'post', x, y)
3445 return self.tk.call(self._w, 'type', index)
3449 self.tk.call(self._w, 'unpost')
3451 def xposition(self, index): # new in Tk 8.5
3454 return self.tk.getint(self.tk.call(self._w, 'xposition', index))
3458 return self.tk.getint(self.tk.call(
3494 self.tk.call(self._w, 'deselect')
3498 self.tk.call(self._w, 'flash')
3502 return self.tk.call(self._w, 'invoke')
3506 self.tk.call(self._w, 'select')
3525 value = self.tk.call(self._w, 'get')
3527 return self.tk.getint(value)
3529 return self.tk.getdouble(value)
3533 self.tk.call(self._w, 'set', value)
3540 return self._getints(self.tk.call(self._w, 'coords', value))
3545 return self.tk.call(self._w, 'identify', x, y)
3569 return self.tk.call(self._w, 'activate', index) or None
3574 return self.tk.getdouble(
3575 self.tk.call(self._w, 'delta', deltax, deltay))
3580 return self.tk.getdouble(self.tk.call(self._w, 'fraction', x, y))
3585 return self.tk.call(self._w, 'identify', x, y)
3590 return self._getdoubles(self.tk.call(self._w, 'get'))
3595 self.tk.call(self._w, 'set', first, last)
3630 self.tk.call(self._w, 'bbox', index)) or None
3635 return self.tk.getboolean(self.tk.call(
3638 def count(self, index1, index2, *args): # new in Tk 8.5
3652 res = self.tk.call(self._w, 'count', *args) or None
3662 return self.tk.getboolean(self.tk.call(self._w, 'debug'))
3663 self.tk.call(self._w, 'debug', boolean)
3667 self.tk.call(self._w, 'delete', index1, index2)
3673 return self._getints(self.tk.call(self._w, 'dlineinfo', index))
3708 self.tk.call(self._w, "dump", *args)
3728 return self.tk.call(self._w, 'edit', *args)
3776 return self.tk.call(self._w, 'get', index1, index2)
3785 return self.tk.call(self._w, "image", "cget", index, option)
3793 return self.tk.call(
3799 return self.tk.call(self._w, "image", "names")
3803 return str(self.tk.call(self._w, 'index', index))
3808 self.tk.call((self._w, 'insert', index, chars) + args)
3813 return self.tk.call(
3818 return self.tk.splitlist(self.tk.call(
3823 self.tk.call(self._w, 'mark', 'set', markName, index)
3827 self.tk.call((self._w, 'mark', 'unset') + markNames)
3831 return self.tk.call(self._w, 'mark', 'next', index) or None
3835 return self.tk.call(self._w, 'mark', 'previous', index) or None
3837 def peer_create(self, newPathName, cnf={}, **kw): # new in Tk 8.5
3842 self.tk.call(self._w, 'peer', 'create', newPathName,
3845 def peer_names(self): # new in Tk 8.5
3848 return self.tk.splitlist(self.tk.call(self._w, 'peer', 'names'))
3850 def replace(self, index1, index2, chars, *args): # new in Tk 8.5
3856 self.tk.call(self._w, 'replace', index1, index2, chars, *args)
3860 self.tk.call(self._w, 'scan', 'mark', x, y)
3866 self.tk.call(self._w, 'scan', 'dragto', x, y)
3886 return str(self.tk.call(tuple(args)))
3890 self.tk.call(self._w, 'see', index)
3895 self.tk.call(
3901 self.tk.call(self._w, 'tag', 'bind', tagName, sequence, '')
3920 return self.tk.call(self._w, 'tag', 'cget', tagName, option)
3930 self.tk.call((self._w, 'tag', 'delete') + tagNames)
3935 self.tk.call(self._w, 'tag', 'lower', tagName, belowThis)
3939 return self.tk.splitlist(
3940 self.tk.call(self._w, 'tag', 'names', index))
3946 return self.tk.splitlist(self.tk.call(
3953 return self.tk.splitlist(self.tk.call(
3959 self.tk.call(
3964 return self.tk.splitlist(self.tk.call(
3969 self.tk.call(
3978 return self.tk.call(self._w, 'window', 'cget', index, option)
3988 self.tk.call(
3994 return self.tk.splitlist(
3995 self.tk.call(self._w, 'window', 'names'))
3999 self.tk.call((self._w, 'yview', '-pickplace') + what)
4063 self.tk = getattr(master, 'tk', master)
4066 name = "pyimage%r" % (Image._last_id,) # tk itself would use image<x>
4074 self.tk.call(('image', 'create', imgtype, name,) + options)
4082 self.tk.call('image', 'delete', self.name)
4088 self.tk.call(self.name, 'configure', '-'+key, value)
4091 return self.tk.call(self.name, 'configure', '-'+key)
4102 self.tk.call((self.name, 'config') + res)
4108 return self.tk.getint(
4109 self.tk.call('image', 'height', self.name))
4113 return self.tk.call('image', 'type', self.name)
4117 return self.tk.getint(
4118 self.tk.call('image', 'width', self.name))
4133 self.tk.call(self.name, 'blank')
4137 return self.tk.call(self.name, 'cget', '-' + option)
4141 return self.tk.call(self.name, 'cget', '-' + key)
4146 destImage = PhotoImage(master=self.tk)
4147 self.tk.call(destImage, 'copy', self.name)
4155 destImage = PhotoImage(master=self.tk)
4157 self.tk.call(destImage, 'copy', self.name, '-zoom',x,y)
4165 destImage = PhotoImage(master=self.tk)
4167 self.tk.call(destImage, 'copy', self.name, '-subsample',x,y)
4172 return self.tk.call(self.name, 'get', x, y)
4182 self.tk.call(args)
4193 self.tk.call(args)
4197 return self.tk.getboolean(self.tk.call(
4202 self.tk.call(self.name, 'transparency', 'set', x, y, boolean)
4216 tk = _get_default_root('use image_names()').tk
4217 return tk.splitlist(tk.call('image', 'names'))
4221 tk = _get_default_root('use image_types()').tk
4222 return tk.splitlist(tk.call('image', 'types'))
4269 return self._getints(self.tk.call(self._w, 'bbox', index)) or None
4280 return self.tk.call(self._w, 'delete', first, last)
4284 return self.tk.call(self._w, 'get')
4292 return self.tk.call(self._w, 'icursor', index)
4299 return self.tk.call(self._w, 'identify', x, y)
4304 return self.tk.call(self._w, 'index', index)
4311 return self.tk.call(self._w, 'insert', index, s)
4319 return self.tk.call(self._w, 'invoke', element)
4324 self.tk.call((self._w, 'scan') + args)) or ()
4350 self.tk.call((self._w, 'selection') + args)) or ()
4380 return self.tk.call(self._w, 'selection', 'element', element)
4389 return self.tk.getboolean(
4390 self.tk.call(self._w, 'selection', 'present'))
4454 self.tk.call((self._w, 'add', child) + self._options(kw))
4461 self.tk.call(self._w, 'forget', child)
4475 return self.tk.call(self._w, 'identify', x, y)
4480 self.tk.call((self._w, 'proxy') + args)) or ()
4500 self.tk.call((self._w, 'sash') + args)) or ()
4533 return self.tk.call(
4609 self.tk.call((self._w, 'paneconfigure', tagOrId) +
4616 return self.tk.splitlist(self.tk.call(self._w, 'panes'))
4622 root = Tk()
4623 text = "This is Tcl/Tk version %s" % TclVersion