Lines Matching refs:item
76 # each value in mapdict is expected to be a sequence, where each item
83 for item in items:
84 state = item[:-1]
85 val = item[-1]
425 If it is a list (or tuple, or something else), each item should be
426 a tuple where the first item is the layout name and the second item
449 where the first item is the layout name, and the other
1150 Each item has a textual label, an optional image, and an optional list
1166 ITEM OPTIONS
1177 def bbox(self, item, column=None):
1179 window) of the specified item in the form x y width height.
1182 If the item is not visible (i.e., if it is a descendant of a
1183 closed item or is scrolled offscreen), returns an empty string."""
1184 return self.tk.call(self._w, "bbox", item, column)
1187 def get_children(self, item=None):
1188 """Returns a tuple of children belonging to item.
1190 If item is not specified, returns root children."""
1191 return self.tk.call(self._w, "children", item or '') or ()
1194 def set_children(self, item, *newchildren):
1195 """Replaces item's child with newchildren.
1197 Children present in item that are not present in newchildren
1199 ancestor of item."""
1200 self.tk.call(self._w, "children", item, newchildren)
1216 item may not be deleted."""
1225 displayed. The root item may not be detached."""
1229 def exists(self, item):
1230 """Returns True if the specified item is present in the tree,
1232 return bool(self.tk.call(self._w, "exists", item))
1235 def focus(self, item=None):
1236 """If item is specified, sets the focus item to item. Otherwise,
1237 returns the current focus item, or '' if there is none."""
1238 return self.tk.call(self._w, "focus", item)
1281 """Returns the item ID of the item at position y."""
1311 def index(self, item):
1312 """Returns the integer index of item within its parent's list
1314 return self.tk.call(self._w, "index", item)
1318 """Creates a new item and return the item identifier of the newly
1319 created item.
1321 parent is the item ID of the parent item, or the empty string
1322 to create a new top-level item. index is an integer, or the value
1324 the new item. If index is less than or equal to zero, the new node
1327 is specified, it is used as the item identifier, iid must not
1340 def item(self, item, option=None, **kw):
1341 """Query or modify the options for the specified item.
1343 If no options are given, a dict with options/values for the item
1349 return _val_or_dict(kw, self.tk.call, self._w, "item", item)
1352 def move(self, item, parent, index):
1353 """Moves item to position index in parent's list of children.
1355 It is illegal to move an item under one of its descendants. If
1356 index is less than or equal to zero, item is moved to the
1358 it is moved to the end. If item was detached it is reattached."""
1359 self.tk.call(self._w, "move", item, parent, index)
1364 def next(self, item):
1365 """Returns the identifier of item's next sibling, or '' if item
1367 return self.tk.call(self._w, "next", item)
1370 def parent(self, item):
1371 """Returns the ID of the parent of item, or '' if item is at the
1373 return self.tk.call(self._w, "parent", item)
1376 def prev(self, item):
1377 """Returns the identifier of item's previous sibling, or '' if
1378 item is the first child of its parent."""
1379 return self.tk.call(self._w, "prev", item)
1382 def see(self, item):
1383 """Ensure that item is visible.
1385 Sets all of item's ancestors open option to True, and scrolls
1386 the widget if necessary so that item is within the visible
1388 self.tk.call(self._w, "see", item)
1412 """Toggle the selection state of each item in items."""
1416 def set(self, item, column=None, value=None):
1418 for the specified item. With two arguments, returns the current
1420 value of given column in given item to the specified value."""
1421 res = self.tk.call(self._w, "set", item, column, value)
1430 When an event is delivered to an item, the callbacks for each
1431 of the item's tags option are called."""
1448 def tag_has(self, tagname, item=None):
1449 """If item is specified, returns 1 or 0 depending on whether the
1450 specified item has the given tagname. Otherwise, returns a list of
1454 return self.tk.call(self._w, "tag", "has", tagname, item)
1570 A callback that will be invoked after selecting an item.
1586 def __getitem__(self, item):
1587 if item == 'menu':
1588 return self.nametowidget(Menubutton.__getitem__(self, item))
1590 return Menubutton.__getitem__(self, item)