Lines Matching defs:item
59 # each value in mapdict is expected to be a sequence, where each item
398 If it is a list (or tuple, or something else), each item should be
399 a tuple where the first item is the layout name and the second item
422 where the first item is the layout name, and the other
1153 Each item has a textual label, an optional image, and an optional list
1180 def bbox(self, item, column=None):
1182 window) of the specified item in the form x y width height.
1185 If the item is not visible (i.e., if it is a descendant of a
1186 closed item or is scrolled offscreen), returns an empty string."""
1187 return self._getints(self.tk.call(self._w, "bbox", item, column)) or ''
1190 def get_children(self, item=None):
1191 """Returns a tuple of children belonging to item.
1193 If item is not specified, returns root children."""
1195 self.tk.call(self._w, "children", item or '') or ())
1198 def set_children(self, item, *newchildren):
1199 """Replaces item's child with newchildren.
1201 Children present in item that are not present in newchildren
1203 ancestor of item."""
1204 self.tk.call(self._w, "children", item, newchildren)
1220 item may not be deleted."""
1229 displayed. The root item may not be detached."""
1233 def exists(self, item):
1234 """Returns True if the specified item is present in the tree,
1236 return self.tk.getboolean(self.tk.call(self._w, "exists", item))
1239 def focus(self, item=None):
1240 """If item is specified, sets the focus item to item. Otherwise,
1241 returns the current focus item, or '' if there is none."""
1242 return self.tk.call(self._w, "focus", item)
1285 """Returns the item ID of the item at position y."""
1315 def index(self, item):
1316 """Returns the integer index of item within its parent's list
1318 return self.tk.getint(self.tk.call(self._w, "index", item))
1322 """Creates a new item and return the item identifier of the newly
1323 created item.
1325 parent is the item ID of the parent item, or the empty string
1326 to create a new top-level item. index is an integer, or the value
1328 the new item. If index is less than or equal to zero, the new node
1331 is specified, it is used as the item identifier, iid must not
1344 def item(self, item, option=None, **kw):
1345 """Query or modify the options for the specified item.
1347 If no options are given, a dict with options/values for the item
1353 return _val_or_dict(self.tk, kw, self._w, "item", item)
1356 def move(self, item, parent, index):
1357 """Moves item to position index in parent's list of children.
1359 It is illegal to move an item under one of its descendants. If
1360 index is less than or equal to zero, item is moved to the
1362 it is moved to the end. If item was detached it is reattached."""
1363 self.tk.call(self._w, "move", item, parent, index)
1368 def next(self, item):
1369 """Returns the identifier of item's next sibling, or '' if item
1371 return self.tk.call(self._w, "next", item)
1374 def parent(self, item):
1375 """Returns the ID of the parent of item, or '' if item is at the
1377 return self.tk.call(self._w, "parent", item)
1380 def prev(self, item):
1381 """Returns the identifier of item's previous sibling, or '' if
1382 item is the first child of its parent."""
1383 return self.tk.call(self._w, "prev", item)
1386 def see(self, item):
1387 """Ensure that item is visible.
1389 Sets all of item's ancestors open option to True, and scrolls
1390 the widget if necessary so that item is within the visible
1392 self.tk.call(self._w, "see", item)
1423 """Toggle the selection state of each specified item."""
1427 def set(self, item, column=None, value=None):
1428 """Query or set the value of given item.
1431 for the specified item. With two arguments, return the current
1433 value of given column in given item to the specified value."""
1434 res = self.tk.call(self._w, "set", item, column, value)
1444 When an event is delivered to an item, the callbacks for each
1445 of the item's tags option are called."""
1462 def tag_has(self, tagname, item=None):
1463 """If item is specified, returns 1 or 0 depending on whether the
1464 specified item has the given tagname. Otherwise, returns a list of
1468 if item is None:
1473 self.tk.call(self._w, "tag", "has", tagname, item))
1591 A callback that will be invoked after selecting an item.
1607 def __getitem__(self, item):
1608 if item == 'menu':
1609 return self.nametowidget(Menubutton.__getitem__(self, item))
1611 return Menubutton.__getitem__(self, item)