Lines Matching refs:tk
42 master.tk.eval(
46 master.tk.eval('package require tile') # TclError may be raised here
262 def _list_from_layouttuple(tk, ltuple): argument
265 ltuple = tk.splitlist(ltuple)
284 val = _list_from_layouttuple(tk, val)
290 def _val_or_dict(tk, options, *args): argument
299 res = tk.call(*(args + options))
304 return _splitdict(tk, res, conv=_tclobj_to_py)
375 self.tk = self.master.tk
386 return _val_or_dict(self.tk, kw, self._name, "configure", style)
398 return _list_from_statespec(self.tk.splitlist(
399 self.tk.call(self._name, "map", style, '-%s' % query_opt)))
402 self.tk,
403 self.tk.call(self._name, "map", style, *_format_mapdict(kw)),
415 return self.tk.call(self._name, "lookup", style, '-%s' % option,
458 return _list_from_layouttuple(self.tk,
459 self.tk.call(self._name, "layout", style, lspec))
465 self.tk.call(self._name, "element", "create", elementname, etype,
471 return self.tk.splitlist(self.tk.call(self._name, "element", "names"))
476 return self.tk.splitlist(self.tk.call(self._name, "element", "options", elementname))
489 self.tk.call(self._name, "theme", "create", themename,
492 self.tk.call(self._name, "theme", "create", themename,
505 self.tk.call(self._name, "theme", "settings", themename, script)
510 return self.tk.splitlist(self.tk.call(self._name, "theme", "names"))
520 return self.tk.eval("return $ttk::currentTheme")
525 self.tk.call("ttk::setTheme", themename)
563 return self.tk.call(self._w, "identify", x, y)
573 ret = self.tk.getboolean(
574 self.tk.call(self._w, "instate", ' '.join(statespec)))
591 return self.tk.splitlist(str(self.tk.call(self._w, "state", statespec)))
615 return self.tk.call(self._w, "invoke")
644 return self.tk.call(self._w, "invoke")
673 return self._getints(self.tk.call(self._w, "bbox", index))
679 return self.tk.call(self._w, "identify", x, y)
686 return self.tk.getboolean(self.tk.call(self._w, "validate"))
714 return self.tk.getint(self.tk.call(self._w, "current"))
715 return self.tk.call(self._w, "current", newindex)
720 self.tk.call(self._w, "set", value)
842 self.tk.call(self._w, "add", child, *(_format_optdict(kw)))
848 self.tk.call(self._w, "forget", tab_id)
857 self.tk.call(self._w, "hide", tab_id)
863 return self.tk.call(self._w, "identify", x, y)
869 return self.tk.getint(self.tk.call(self._w, "index", tab_id))
878 self.tk.call(self._w, "insert", pos, child, *(_format_optdict(kw)))
888 return self.tk.call(self._w, "select", tab_id)
899 return _val_or_dict(self.tk, kw, self._w, "tab", tab_id)
904 return self.tk.splitlist(self.tk.call(self._w, "tabs") or ())
930 self.tk.call("ttk::notebook::enableTraversal", self._w)
964 self.tk.call(self._w, "insert", pos, child, *(_format_optdict(kw)))
976 return _val_or_dict(self.tk, kw, self._w, "pane", pane)
987 return self.tk.getint(self.tk.call(self._w, "sashpos", index, newpos))
1018 self.tk.call(self._w, "start", interval)
1025 self.tk.call(self._w, "step", amount)
1031 self.tk.call(self._w, "stop")
1059 return self.tk.call(self._w, "invoke")
1098 return self.tk.call(self._w, 'get', x, y)
1187 return self._getints(self.tk.call(self._w, "bbox", item, column)) or ''
1194 return self.tk.splitlist(
1195 self.tk.call(self._w, "children", item or '') or ())
1204 self.tk.call(self._w, "children", item, newchildren)
1215 return _val_or_dict(self.tk, kw, self._w, "column", column)
1221 self.tk.call(self._w, "delete", items)
1230 self.tk.call(self._w, "detach", items)
1236 return self.tk.getboolean(self.tk.call(self._w, "exists", item))
1242 return self.tk.call(self._w, "focus", item)
1274 return _val_or_dict(self.tk, kw, self._w, 'heading', column)
1281 return self.tk.call(self._w, "identify", component, x, y)
1318 return self.tk.getint(self.tk.call(self._w, "index", item))
1336 res = self.tk.call(self._w, "insert", parent, index,
1339 res = self.tk.call(self._w, "insert", parent, index, *opts)
1353 return _val_or_dict(self.tk, kw, self._w, "item", item)
1363 self.tk.call(self._w, "move", item, parent, index)
1371 return self.tk.call(self._w, "next", item)
1377 return self.tk.call(self._w, "parent", item)
1383 return self.tk.call(self._w, "prev", item)
1392 self.tk.call(self._w, "see", item)
1399 return self.tk.splitlist(self.tk.call(self._w, "selection", selop, items))
1429 res = self.tk.call(self._w, "set", item, column, value)
1431 return _splitdict(self.tk, res,
1453 return _val_or_dict(self.tk, kw, self._w, "tag", "configure",
1464 return self.tk.splitlist(
1465 self.tk.call(self._w, "tag", "has", tagname))
1467 return self.tk.getboolean(
1468 self.tk.call(self._w, "tag", "has", tagname, item))