Lines Matching refs:tk
3 This module provides classes to allow using Tk themed widget set.
6 TIP #48 (http://tip.tcl.tk/48) specified style engine.
31 # Verify if Tk is new enough to not need the Tile package
42 master.tk.eval(
46 master.tk.eval('package require tile') # TclError may be raised here
52 # if caller passes a Tcl script to tk.call, all the values need to
60 """Formats optdict to a tuple to pass it to tk.call.
101 """Formats mapdict to pass it to tk.call.
134 # Availability: Tk 8.6, Windows XP and Vista.
356 master = Tkinter._default_root or Tkinter.Tk()
377 self.tk = self.master.tk
388 return _val_or_dict(kw, self.tk.call, self._name, "configure", style)
401 self.tk.call(self._name, "map", style, '-%s' % query_opt))
404 self.tk.call(self._name, "map", style, *(_format_mapdict(kw))))
415 return self.tk.call(self._name, "lookup", style, '-%s' % option,
459 self.tk.call(self._name, "layout", style, lspec))
465 self.tk.call(self._name, "element", "create", elementname, etype,
471 return self.tk.call(self._name, "element", "names")
476 return 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.call(self._name, "theme", "names")
518 # Starting on Tk 8.6, checking this global is no longer needed
519 # since it allows doing self.tk.call(self._name, "theme", "use")
520 return self.tk.eval("return $ttk::currentTheme")
525 self.tk.call("ttk::setTheme", themename)
529 """Base class for Tk themed widgets."""
563 return self.tk.call(self._w, "identify", x, y)
573 ret = self.tk.call(self._w, "instate", ' '.join(statespec))
590 return self.tk.splitlist(str(self.tk.call(self._w, "state", statespec)))
614 return self.tk.call(self._w, "invoke")
643 return self.tk.call(self._w, "invoke")
672 return self.tk.call(self._w, "bbox", index)
678 return self.tk.call(self._w, "identify", x, y)
685 return bool(self.tk.call(self._w, "validate"))
712 return self.tk.call(self._w, "current", newindex)
717 self.tk.call(self._w, "set", value)
839 self.tk.call(self._w, "add", child, *(_format_optdict(kw)))
845 self.tk.call(self._w, "forget", tab_id)
854 self.tk.call(self._w, "hide", tab_id)
860 return self.tk.call(self._w, "identify", x, y)
866 return self.tk.call(self._w, "index", tab_id)
875 self.tk.call(self._w, "insert", pos, child, *(_format_optdict(kw)))
885 return self.tk.call(self._w, "select", tab_id)
896 return _val_or_dict(kw, self.tk.call, self._w, "tab", tab_id)
901 return self.tk.call(self._w, "tabs") or ()
927 self.tk.call("ttk::notebook::enableTraversal", self._w)
961 self.tk.call(self._w, "insert", pos, child, *(_format_optdict(kw)))
973 return _val_or_dict(kw, self.tk.call, self._w, "pane", pane)
984 return self.tk.call(self._w, "sashpos", index, newpos)
1015 self.tk.call(self._w, "start", interval)
1022 self.tk.call(self._w, "step", amount)
1028 self.tk.call(self._w, "stop")
1056 return self.tk.call(self._w, "invoke")
1095 return self.tk.call(self._w, 'get', x, y)
1184 return self.tk.call(self._w, "bbox", item, column)
1191 return self.tk.call(self._w, "children", item or '') or ()
1200 self.tk.call(self._w, "children", item, newchildren)
1211 return _val_or_dict(kw, self.tk.call, self._w, "column", column)
1217 self.tk.call(self._w, "delete", items)
1226 self.tk.call(self._w, "detach", items)
1232 return bool(self.tk.call(self._w, "exists", item))
1238 return self.tk.call(self._w, "focus", item)
1256 the standard Tk anchor values
1270 return _val_or_dict(kw, self.tk.call, self._w, 'heading', column)
1277 return self.tk.call(self._w, "identify", component, x, y)
1300 * Availability: Tk 8.6"""
1307 * Availability: Tk 8.6"""
1314 return self.tk.call(self._w, "index", item)
1332 res = self.tk.call(self._w, "insert", parent, index,
1335 res = self.tk.call(self._w, "insert", parent, index, *opts)
1349 return _val_or_dict(kw, self.tk.call, self._w, "item", item)
1359 self.tk.call(self._w, "move", item, parent, index)
1367 return self.tk.call(self._w, "next", item)
1373 return self.tk.call(self._w, "parent", item)
1379 return self.tk.call(self._w, "prev", item)
1388 self.tk.call(self._w, "see", item)
1393 return self.tk.call(self._w, "selection", selop, items)
1421 res = self.tk.call(self._w, "set", item, column, value)
1444 return _val_or_dict(kw, self.tk.call, self._w, "tag", "configure",
1453 * Availability: Tk 8.6"""
1454 return self.tk.call(self._w, "tag", "has", tagname, item)