Home | History | Annotate | Download | only in lib-tk

Lines Matching refs:tk

34     raise ImportError, "This version of Tix.py requires Tk 4.0 or higher"
36 import _tkinter # If this fails your Python may not be configured for Tk
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)
126 for x in self.tk.split(self.tk.call('tix', 'configure')):
130 x = self.tk.split(self.tk.call('tix', 'configure', '-'+cnf))
132 return self.tk.call(('tix', 'configure') + self._options(cnf))
144 return self.tk.call('tix', 'filedialog', dlgclass)
146 return self.tk.call('tix', 'filedialog')
155 option of the TK and Tix widgets.
157 return self.tk.call('tix', 'getbitmap', name)
169 configure the -image option of the Tk and Tix widgets.
171 return self.tk.call('tix', 'getimage', name)
187 # could use self.tk.globalgetvar('tixOption', name)
188 return self.tk.call('tix', 'option', 'get', name)
198 priority level of the Tk options set by the Tix schemes.
200 Because of the way Tk handles the X option database, after Tix has
206 return self.tk.call('tix', 'resetoptions', newScheme, newFontSet, newScmPrio)
208 return self.tk.call('tix', 'resetoptions', newScheme, newFontSet)
210 class Tk(Tkinter.Tk, tixCommand):
214 Tkinter.Tk.__init__(self, screenName, baseName, className)
216 self.tk.eval('global auto_path; lappend auto_path [file dir [info nameof]]')
218 self.tk.eval('global auto_path; lappend auto_path {%s}' % tixlib)
219 self.tk.eval('global tcl_pkgPath; lappend tcl_pkgPath {%s}' % tixlib)
225 self.tk.eval('package require Tix')
230 Tkinter.Tk.destroy(self)
240 self.tk.call('tixForm', self._w, *self._options(cnf, kw))
248 return self.tk.call('tixForm', 'check', self._w)
251 self.tk.call('tixForm', 'forget', self._w)
255 x = self.tk.call('tixForm', 'grid', self._w)
256 y = self.tk.splitlist(x)
259 z = z + (self.tk.getint(x),)
261 return self.tk.call('tixForm', 'grid', self._w, xsize, ysize)
265 return self.tk.call('tixForm', 'info', self._w)
268 return self.tk.call('tixForm', 'info', self._w, option)
272 self.tk.splitlist(
273 self.tk.call(
287 2) It is possible to give the name of an existing TK widget. These are
288 child widgets created automatically by a Tix mega-widget. The Tk call
320 # corresponding Tk widget has already been created by Tix
322 self.tk.call(widgetName, self._w, *extra)
345 self.tk.call('tixSetSilent', self._w, value)
375 return self.tk.call(self._w, 'subwidget', name)
382 x = self.tk.call(self._w, 'subwidgets', '-all')
383 return self.tk.split(x)
397 self.tk.call(name, 'configure', '-' + option, value)
411 return master.tk.call(('image', 'create', imgtype,) + options)
414 self.tk.call('image', 'delete', imgname)
421 # existence in Tk/Tix.
426 by Tix/Tk as part of a mega-widget in Python (which is not informed
455 # The Tk widget name is in plist, not in name
473 self.tk.call('destroy', self._w)
494 self.tk = master.tk
495 self.stylename = self.tk.call('tixDisplayStyle', itemtype,
512 self.tk.call(self.stylename, 'delete')
515 self.tk.call(self.stylename, 'configure', '-%s'%key, value)
519 self.tk.split(
520 self.tk.call(
524 return self.tk.call(self.stylename, 'cget', '-%s'%key)
553 self.tk.call(self._w, 'bind', widget._w, *self._options(cnf, kw))
556 self.tk.call(self._w, 'unbind', widget._w)
569 btn = self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
575 self.tk.call(self._w, 'invoke', name)
610 self.tk.call(self._w, 'addhistory', str)
613 self.tk.call(self._w, 'appendhistory', str)
616 self.tk.call(self._w, 'insert', index, str)
619 self.tk.call(self._w, 'pick', index)
643 self.tk.call(self._w, 'decr')
646 self.tk.call(self._w, 'incr')
649 self.tk.call(self._w, 'invoke')
652 self.tk.call(self._w, 'update')
673 self.tk.call(self._w, 'chdir', dir)
695 self.tk.call(self._w, 'chdir', dir)
743 self.tk.call(self._w, 'filter')
746 self.tk.call(self._w, 'invoke')
767 self.tk.call(self._w, 'popup')
770 self.tk.call(self._w, 'popdown')
789 self.tk.call(self._w, 'popup')
792 self.tk.call(self._w, 'popdown')
816 self.tk.call(self._w, 'filter')
819 self.tk.call(self._w, 'invoke')
838 self.tk.call(self._w, 'popup')
841 self.tk.call(self._w, 'popdown')
862 self.tk.call(self._w, 'invoke')
881 return self.tk.call(self._w, 'add', entry, *self._options(cnf, kw))
886 return self.tk.call(
890 self.tk.call(self._w, 'anchor', 'set', entry)
893 self.tk.call(self._w, 'anchor', 'clear')
897 return self.tk.call(self._w, 'column', 'width', col, width)
899 return self.tk.call(self._w, 'column', 'width', col,
903 self.tk.call(self._w, 'delete', 'all')
906 self.tk.call(self._w, 'delete', 'entry', entry)
909 self.tk.call(self._w, 'delete', 'offsprings', entry)
912 self.tk.call(self._w, 'delete', 'siblings', entry)
915 self.tk.call(self._w, 'dragsite', 'set', index)
918 self.tk.call(self._w, 'dragsite', 'clear')
921 self.tk.call(self._w, 'dropsite', 'set', index)
924 self.tk.call(self._w, 'dropsite', 'clear')
927 self.tk.call(self._w, 'header', 'create', col, *self._options(cnf, kw))
932 self.tk.split(
933 self.tk.call(self._w, 'header', 'configure', col)))
934 self.tk.call(self._w, 'header', 'configure', col,
938 return self.tk.call(self._w, 'header', 'cget', col, opt)
941 return self.tk.call(self._w, 'header', 'exists', col)
944 self.tk.call(self._w, 'header', 'delete', col)
947 return self.tk.call(self._w, 'header', 'size', col)
950 self.tk.call(self._w, 'hide', 'entry', entry)
953 self.tk.call(
959 self.tk.split(
960 self.tk.call(self._w, 'indicator', 'configure', entry)))
961 self.tk.call(
965 return self.tk.call(self._w, 'indicator', 'cget', entry, opt)
968 return self.tk.call (self._w, 'indicator', 'exists', entry)
971 self.tk.call(self._w, 'indicator', 'delete', entry)
974 return self.tk.call(self._w, 'indicator', 'size', entry)
977 return self.tk.call(self._w, 'info', 'anchor')
981 self.tk.call(self._w, 'info', 'bbox', entry)) or None
984 c = self.tk.call(self._w, 'info', 'children', entry)
985 return self.tk.splitlist(c)
988 return self.tk.call(self._w, 'info', 'data', entry)
991 return self.tk.call(self._w, 'info', 'dragsite')
994 return self.tk.call(self._w, 'info', 'dropsite')
997 return self.tk.call(self._w, 'info', 'exists', entry)
1000 return self.tk.call(self._w, 'info', 'hidden', entry)
1003 return self.tk.call(self._w, 'info', 'next', entry)
1006 return self.tk.call(self._w, 'info', 'parent', entry)
1009 return self.tk.call(self._w, 'info', 'prev', entry)
1012 c = self.tk.call(self._w, 'info', 'selection')
1013 return self.tk.splitlist(c)
1016 return self.tk.call(self._w, 'item', 'cget', entry, col, opt)
1021 self.tk.split(
1022 self.tk.call(self._w, 'item', 'configure', entry, col)))
1023 self.tk.call(self._w, 'item', 'configure', entry, col,
1027 self.tk.call(
1031 return self.tk.call(self._w, 'item', 'exists', entry, col)
1034 self.tk.call(self._w, 'item', 'delete', entry, col)
1037 return self.tk.call(self._w, 'entrycget', entry, opt)
1042 self.tk.split(
1043 self.tk.call(self._w, 'entryconfigure', entry)))
1044 self.tk.call(self._w, 'entryconfigure', entry,
1048 return self.tk.call(self._w, 'nearest', y)
1051 self.tk.call(self._w, 'see', entry)
1054 self.tk.call(self._w, 'selection', 'clear', *self._options(cnf, kw))
1057 return self.tk.call(self._w, 'selection', 'includes', entry)
1060 self.tk.call(self._w, 'selection', 'set', first, last)
1063 return self.tk.call(self._w, 'show', 'entry', entry)
1124 self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
1133 names = self.tk.split(self.tk.call(self._w, 'pages'))
1140 self.tk.call(self._w, 'raise', name)
1165 self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
1170 self.tk.call(self._w, 'delete', name)
1179 names = self.tk.split(self.tk.call(self._w, 'pages'))
1186 self.tk.call(self._w, 'raise', name)
1189 return self.tk.call(self._w, 'raised')
1210 self.tk.call(self._w, 'add', 'command', name, *self._options(cnf, kw))
1213 self.tk.call(self._w, 'add', 'separator', name, *self._options(cnf, kw))
1216 self.tk.call(self._w, 'delete', name)
1219 self.tk.call(self._w, 'disable', name)
1222 self.tk.call(self._w, 'enable', name)
1240 self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
1246 self.tk.call(self._w, 'delete', name)
1251 self.tk.call(self._w, 'forget', name)
1254 return self.tk.call(self._w, 'panecget', entry, opt)
1259 self.tk.split(
1260 self.tk.call(self._w, 'paneconfigure', entry)))
1261 self.tk.call(self._w, 'paneconfigure', entry, *self._options(cnf, kw))
1264 names = self.tk.splitlist(self.tk.call(self._w, 'panes'))
1285 self.tk.call(self._w, 'bind', widget._w)
1288 self.tk.call(self._w, 'unbind', widget._w)
1291 self.tk.call(self._w, 'post', widget._w, x, y)
1306 self.tk.call(self._w, 'attachwidget', widget._w)
1309 self.tk.call(self._w, 'detachwidget', widget._w)
1312 self.tk
1315 self.tk.call(self._w, 'show', widget._w)
1384 self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
1389 self.tk.call(self._w, 'invoke', name)
1416 self.tk.call(self._w, 'popdown')
1419 self.tk.call(self._w, 'popup')
1422 self.tk.call(self._w, 'center')
1437 self.tk.call(self._w, 'invoke', name)
1442 widget are similar to the entries in the Tk listbox widget. The main
1453 self.tk.call(self._w, 'active', 'set', index)
1456 self.tk.call(self._w, 'active', 'clear')
1459 self.tk.call(self._w, 'anchor', 'set', index)
1462 self.tk.call(self._w, 'anchor', 'clear')
1465 self.tk.call(self._w, 'delete', from_, to)
1468 self.tk.call(self._w, 'dragsite', 'set', index)
1471 self.tk.call(self._w, 'dragsite', 'clear')
1474 self.tk.call(self._w, 'dropsite', 'set', index)
1477 self.tk.call(self._w, 'dropsite', 'clear')
1480 self.tk.call(self._w, 'insert', index, *self._options(cnf, kw))
1483 return self.tk.call(self._w, 'info', 'active')
1486 return self.tk.call(self._w, 'info', 'anchor')
1489 return self.tk.call(self._w, 'info', 'down', index)
1492 return self.tk.call(self._w, 'info', 'left', index)
1495 return self.tk.call(self._w, 'info', 'right', index)
1498 c = self.tk.call(self._w, 'info', 'selection')
1499 return self.tk.splitlist(c)
1502 return self.tk.call(self._w, 'info', 'size')
1505 return self.tk.call(self._w, 'info', 'up', index)
1508 return self.tk.call(self._w, 'nearest', x, y)
1511 self.tk.call(self._w, 'see', index)
1514 self.tk.call(self._w, 'selection', 'clear', *self._options(cnf, kw))
1517 return self.tk.call(self._w, 'selection', 'includes', index)
1520 self.tk.call(self._w, 'selection', 'set', first, last)
1540 self.tk.call(self._w, 'autosetmode')
1544 self.tk.call(self._w, 'close', entrypath)
1548 return self.tk.call(self._w, 'getmode', entrypath)
1552 self.tk.call(self._w, 'open', entrypath)
1564 self.tk.call(self._w, 'setmode', entrypath, mode)
1571 similarly to the Tk checkbutton or radiobutton widgets, except it is
1587 self.tk.call(self._w, 'autosetmode')
1591 self.tk.call(self._w, 'close', entrypath)
1595 return self.tk.call(self._w, 'getmode', entrypath)
1599 self.tk.call(self._w, 'open', entrypath)
1605 c = self.tk.split(self.tk.call(self._w, 'getselection', mode))
1606 return self.tk.splitlist(c)
1610 return self.tk.call(self._w, 'getstatus', entrypath)
1615 self.tk.call(self._w, 'setstatus', entrypath, mode)
1765 return widget.tk.call('tixOptionName', widget._w)
1805 # valid specific resources as of Tk 8.4
1814 # valid options as of Tk 8.4
1820 self.tk.call(self, 'anchor', 'clear')
1824 return self._getints(self.tk.call(self, 'anchor', 'get'))
1828 self.tk.call(self, 'anchor', 'set', x, y)
1834 self.tk.call(self, 'delete', 'row', from_)
1836 self.tk.call(self, 'delete', 'row', from_, to)
1842 self.tk.call(self, 'delete', 'column', from_)
1844 self.tk.call(self, 'delete', 'column', from_, to)
1849 self.tk.call(self, 'edit', 'apply')
1854 self.tk.call(self, 'edit', 'set', x, y)
1860 return self.tk.call(self, 'entrycget', x, y, option)
1870 return self._getboolean(self.tk.call(self, 'info', 'exists', x, y))
1874 return self.tk.call(self, 'info', 'bbox', x, y)
1880 self.tk.call(self, 'move', 'column', from_, to, offset)
1886 self.tk.call(self, 'move', 'row', from_, to, offset)
1890 return self._getints(self.tk.call(self, 'nearest', x, y))
1902 self.tk.call(self, 'set', x, y, *args)
1923 a valid Tk screen distance unit;
1927 return self.tk.split(self.tk.call(self._w, 'size', 'column', index,
1948 a valid Tk screen distance unit;
1952 return self.tk.split(self.tk.call(
1957 self.tk.call(self._w, 'unset', x, y)