• Home
  • Raw
  • Download

Lines Matching full:tk

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.
150 return self.tk.call('tix', 'getbitmap', name)
162 configure the -image option of the Tk and Tix widgets.
164 return self.tk.call('tix', 'getimage', name)
180 # could use self.tk.globalgetvar('tixOption', name)
181 return self.tk.call('tix', 'option', 'get', name)
191 priority level of the Tk options set by the Tix schemes.
193 Because of the way Tk handles the X option database, after Tix has
199 return self.tk.call('tix', 'resetoptions', newScheme, newFontSet, newScmPrio)
201 return self.tk.call('tix', 'resetoptions', newScheme, newFontSet)
203 class Tk(Tkinter.Tk, tixCommand): class
207 Tkinter.Tk.__init__(self, screenName, baseName, className)
209 self.tk.eval('global auto_path; lappend auto_path [file dir [info nameof]]')
211 self.tk.eval('global auto_path; lappend auto_path {%s}' % tixlib)
212 self.tk.eval('global tcl_pkgPath; lappend tcl_pkgPath {%s}' % tixlib)
218 self.tk.eval('package require Tix')
223 Tkinter.Tk.destroy(self)
233 self.tk.call('tixForm', self._w, *self._options(cnf, kw))
241 return self.tk.call('tixForm', 'check', self._w)
244 self.tk.call('tixForm', 'forget', self._w)
248 x = self.tk.call('tixForm', 'grid', self._w)
249 y = self.tk.splitlist(x)
252 z = z + (self.tk.getint(x),)
254 return self.tk.call('tixForm', 'grid', self._w, xsize, ysize)
258 return self.tk.call('tixForm', 'info', self._w)
261 return self.tk.call('tixForm', 'info', self._w, option)
265 self.tk.splitlist(
266 self.tk.call(
280 2) It is possible to give the name of an existing TK widget. These are
281 child widgets created automatically by a Tix mega-widget. The Tk call
313 # corresponding Tk widget has already been created by Tix
315 self.tk.call(widgetName, self._w, *extra)
338 self.tk.call('tixSetSilent', self._w, value)
368 return self.tk.call(self._w, 'subwidget', name)
375 x = self.tk.call(self._w, 'subwidgets', '-all')
376 return self.tk.splitlist(x)
390 self.tk.call(name, 'configure', '-' + option, value)
404 return master.tk.call(('image', 'create', imgtype,) + options)
407 self.tk.call('image', 'delete', imgname)
414 # existence in Tk/Tix.
419 by Tix/Tk as part of a mega-widget in Python (which is not informed
448 # The Tk widget name is in plist, not in name
466 self.tk.call('destroy', self._w)
484 self.tk = master.tk
485 self.stylename = self.tk.call('tixDisplayStyle', itemtype,
502 self.tk.call(self.stylename, 'delete')
505 self.tk.call(self.stylename, 'configure', '-%s'%key, value)
512 return self.tk.call(self.stylename, 'cget', '-%s'%key)
541 self.tk.call(self._w, 'bind', widget._w, *self._options(cnf, kw))
544 self.tk.call(self._w, 'unbind', widget._w)
557 btn = self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
563 self.tk.call(self._w, 'invoke', name)
598 self.tk.call(self._w, 'addhistory', str)
601 self.tk.call(self._w, 'appendhistory', str)
604 self.tk.call(self._w, 'insert', index, str)
607 self.tk.call(self._w, 'pick', index)
631 self.tk.call(self._w, 'decr')
634 self.tk.call(self._w, 'incr')
637 self.tk.call(self._w, 'invoke')
640 self.tk.call(self._w, 'update')
661 self.tk.call(self._w, 'chdir', dir)
683 self.tk.call(self._w, 'chdir', dir)
731 self.tk.call(self._w, 'filter')
734 self.tk.call(self._w, 'invoke')
755 self.tk.call(self._w, 'popup')
758 self.tk.call(self._w, 'popdown')
777 self.tk.call(self._w, 'popup')
780 self.tk.call(self._w, 'popdown')
804 self.tk.call(self._w, 'filter')
807 self.tk.call(self._w, 'invoke')
826 self.tk.call(self._w, 'popup')
829 self.tk.call(self._w, 'popdown')
850 self.tk.call(self._w, 'invoke')
869 return self.tk.call(self._w, 'add', entry, *self._options(cnf, kw))
874 return self.tk.call(
878 self.tk.call(self._w, 'anchor', 'set', entry)
881 self.tk.call(self._w, 'anchor', 'clear')
885 return self.tk.call(self._w, 'column', 'width', col, width)
887 return self.tk.call(self._w, 'column', 'width', col,
891 self.tk.call(self._w, 'delete', 'all')
894 self.tk.call(self._w, 'delete', 'entry', entry)
897 self.tk.call(self._w, 'delete', 'offsprings', entry)
900 self.tk.call(self._w, 'delete', 'siblings', entry)
903 self.tk.call(self._w, 'dragsite', 'set', index)
906 self.tk.call(self._w, 'dragsite', 'clear')
909 self.tk.call(self._w, 'dropsite', 'set', index)
912 self.tk.call(self._w, 'dropsite', 'clear')
915 self.tk.call(self._w, 'header', 'create', col, *self._options(cnf, kw))
920 self.tk.call(self._w, 'header', 'configure', col,
924 return self.tk.call(self._w, 'header', 'cget', col, opt)
930 return self.tk.getboolean(self.tk.call(self._w, 'header', 'exist', col))
934 self.tk.call(self._w, 'header', 'delete', col)
937 return self.tk.call(self._w, 'header', 'size', col)
940 self.tk.call(self._w, 'hide', 'entry', entry)
943 self.tk.call(
950 self.tk.call(
954 return self.tk.call(self._w, 'indicator', 'cget', entry, opt)
957 return self.tk.call (self._w, 'indicator', 'exists', entry)
960 self.tk.call(self._w, 'indicator', 'delete', entry)
963 return self.tk.call(self._w, 'indicator', 'size', entry)
966 return self.tk.call(self._w, 'info', 'anchor')
970 self.tk.call(self._w, 'info', 'bbox', entry)) or None
973 c = self.tk.call(self._w, 'info', 'children', entry)
974 return self.tk.splitlist(c)
977 return self.tk.call(self._w, 'info', 'data', entry)
980 return self.tk.call(self._w, 'info', 'dragsite')
983 return self.tk.call(self._w, 'info', 'dropsite')
986 return self.tk.call(self._w, 'info', 'exists', entry)
989 return self.tk.call(self._w, 'info', 'hidden', entry)
992 return self.tk.call(self._w, 'info', 'next', entry)
995 return self.tk.call(self._w, 'info', 'parent', entry)
998 return self.tk.call(self._w, 'info', 'prev', entry)
1001 c = self.tk.call(self._w, 'info', 'selection')
1002 return self.tk.splitlist(c)
1005 return self.tk.call(self._w, 'item', 'cget', entry, col, opt)
1010 self.tk.call(self._w, 'item', 'configure', entry, col,
1014 self.tk.call(
1018 return self.tk.call(self._w, 'item', 'exists', entry, col)
1021 self.tk.call(self._w, 'item', 'delete', entry, col)
1024 return self.tk.call(self._w, 'entrycget', entry, opt)
1029 self.tk.call(self._w, 'entryconfigure', entry,
1033 return self.tk.call(self._w, 'nearest', y)
1036 self.tk.call(self._w, 'see', entry)
1039 self.tk.call(self._w, 'selection', 'clear', *self._options(cnf, kw))
1042 return self.tk.call(self._w, 'selection', 'includes', entry)
1045 self.tk.call(self._w, 'selection', 'set', first, last)
1048 return self.tk.call(self._w, 'show', 'entry', entry)
1109 self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
1118 names = self.tk.split(self.tk.call(self._w, 'pages'))
1125 self.tk.call(self._w, 'raise', name)
1150 self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
1155 self.tk.call(self._w, 'delete', name)
1164 names = self.tk.split(self.tk.call(self._w, 'pages'))
1171 self.tk.call(self._w, 'raise', name)
1174 return self.tk.call(self._w, 'raised')
1195 self.tk.call(self._w, 'add', 'command', name, *self._options(cnf, kw))
1198 self.tk.call(self._w, 'add', 'separator', name, *self._options(cnf, kw))
1201 self.tk.call(self._w, 'delete', name)
1204 self.tk.call(self._w, 'disable', name)
1207 self.tk.call(self._w, 'enable', name)
1225 self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
1231 self.tk.call(self._w, 'delete', name)
1236 self.tk.call(self._w, 'forget', name)
1239 return self.tk.call(self._w, 'panecget', entry, opt)
1244 self.tk.call(self._w, 'paneconfigure', entry, *self._options(cnf, kw))
1247 names = self.tk.splitlist(self.tk.call(self._w, 'panes'))
1268 self.tk.call(self._w, 'bind', widget._w)
1271 self.tk.call(self._w, 'unbind', widget._w)
1274 self.tk.call(self._w, 'post', widget._w, x, y)
1289 self.tk.call(self._w, 'attachwidget', widget._w)
1292 self.tk.call(self._w, 'detachwidget', widget._w)
1295 self.tk.call(self._w, 'hide', widget._w)
1298 self.tk.call(self._w, 'show', widget._w)
1367 self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
1372 self.tk.call(self._w, 'invoke', name)
1399 self.tk.call(self._w, 'popdown')
1402 self.tk.call(self._w, 'popup')
1405 self.tk.call(self._w, 'center')
1420 self.tk.call(self._w, 'invoke', name)
1425 widget are similar to the entries in the Tk listbox widget. The main
1436 self.tk.call(self._w, 'active', 'set', index)
1439 self.tk.call(self._w, 'active', 'clear')
1442 self.tk.call(self._w, 'anchor', 'set', index)
1445 self.tk.call(self._w, 'anchor', 'clear')
1448 self.tk.call(self._w, 'delete', from_, to)
1451 self.tk.call(self._w, 'dragsite', 'set', index)
1454 self.tk.call(self._w, 'dragsite', 'clear')
1457 self.tk.call(self._w, 'dropsite', 'set', index)
1460 self.tk.call(self._w, 'dropsite', 'clear')
1463 self.tk.call(self._w, 'insert', index, *self._options(cnf, kw))
1466 return self.tk.call(self._w, 'info', 'active')
1469 return self.tk.call(self._w, 'info', 'anchor')
1472 return self.tk.call(self._w, 'info', 'down', index)
1475 return self.tk.call(self._w, 'info', 'left', index)
1478 return self.tk.call(self._w, 'info', 'right', index)
1481 c = self.tk.call(self._w, 'info', 'selection')
1482 return self.tk.splitlist(c)
1485 return self.tk.call(self._w, 'info', 'size')
1488 return self.tk.call(self._w, 'info', 'up', index)
1491 return self.tk.call(self._w, 'nearest', x, y)
1494 self.tk.call(self._w, 'see', index)
1497 self.tk.call(self._w, 'selection', 'clear', *self._options(cnf, kw))
1500 return self.tk.call(self._w, 'selection', 'includes', index)
1503 self.tk.call(self._w, 'selection', 'set', first, last)
1523 self.tk.call(self._w, 'autosetmode')
1527 self.tk.call(self._w, 'close', entrypath)
1531 return self.tk.call(self._w, 'getmode', entrypath)
1535 self.tk.call(self._w, 'open', entrypath)
1547 self.tk.call(self._w, 'setmode', entrypath, mode)
1554 similarly to the Tk checkbutton or radiobutton widgets, except it is
1570 self.tk.call(self._w, 'autosetmode')
1574 self.tk.call(self._w, 'close', entrypath)
1578 return self.tk.call(self._w, 'getmode', entrypath)
1582 self.tk.call(self._w, 'open', entrypath)
1588 c = self.tk.split(self.tk.call(self._w, 'getselection', mode))
1589 return self.tk.splitlist(c)
1593 return self.tk.call(self._w, 'getstatus', entrypath)
1598 self.tk.call(self._w, 'setstatus', entrypath, mode)
1748 return widget.tk.call('tixOptionName', widget._w)
1788 # valid specific resources as of Tk 8.4
1797 # valid options as of Tk 8.4
1803 self.tk.call(self, 'anchor', 'clear')
1807 return self._getints(self.tk.call(self, 'anchor', 'get'))
1811 self.tk.call(self, 'anchor', 'set', x, y)
1817 self.tk.call(self, 'delete', 'row', from_)
1819 self.tk.call(self, 'delete', 'row', from_, to)
1825 self.tk.call(self, 'delete', 'column', from_)
1827 self.tk.call(self, 'delete', 'column', from_, to)
1832 self.tk.call(self, 'edit', 'apply')
1837 self.tk.call(self, 'edit', 'set', x, y)
1843 return self.tk.call(self, 'entrycget', x, y, option)
1853 return self._getboolean(self.tk.call(self, 'info', 'exists', x, y))
1857 return self.tk.call(self, 'info', 'bbox', x, y)
1863 self.tk.call(self, 'move', 'column', from_, to, offset)
1869 self.tk.call(self, 'move', 'row', from_, to, offset)
1873 return self._getints(self.tk.call(self, 'nearest', x, y))
1885 self.tk.call(self, 'set', x, y, *args)
1906 a valid Tk screen distance unit;
1910 return self.tk.split(self.tk.call(self._w, 'size', 'column', index,
1931 a valid Tk screen distance unit;
1935 return self.tk.split(self.tk.call(
1940 self.tk.call(self._w, 'unset', x, y)