Lines Matching defs:for

1 """Wrapper functions for Tcl/Tk.
38 import _tkinter # If this fails your Python may not be configured for Tk
90 for item in seq:
110 for c in _flatten(cnfs):
115 for k, v in c.items():
138 for key, value in zip(it, it):
214 """Container for the properties of an event.
218 KeyPress, KeyRelease - for keyboard events
219 ButtonPress, ButtonRelease, Motion, Enter, Leave, MouseWheel - for mouse events
222 Deactivate - for window events.
224 If a callback function for one of these events is registered
227 following attributes (in braces are the event types for which
257 attrs = {k: v for k, v in self.__dict__.items() if v != '??'}
272 for i, n in enumerate(mods):
291 ''.join(' %s=%s' % (k, attrs[k]) for k in keys if k in attrs)
303 Tk is used for windows without an explicit parent window.
368 """Class to define value holders for e.g. buttons.
386 # check for type of NAME parameter to override weird error message
413 for name in self._tclCommands:
450 """Define a trace callback for the variable.
465 """Delete the trace callback for a variable.
473 for m, ca in self.trace_info():
486 return [(splitlist(k), v) for k, v in map(splitlist,
490 """Define a trace callback for the variable.
492 MODE is one of "r", "w", "u" for read, write, undefine.
509 """Delete the trace callback for a variable.
511 MODE is one of "r", "w", "u" for read, write, undefine.
520 for m, ca in self.trace_info():
537 return [self._tk.splitlist(x) for x in self._tk.splitlist(
549 """Value holder for strings variables."""
573 """Value holder for integer variables."""
598 """Value holder for float variables."""
619 """Value holder for boolean variables."""
645 raise ValueError("invalid literal for getboolean()")
663 raise ValueError("invalid literal for getboolean()")
671 Base class which defines methods common for interior widgets."""
673 # used for generating child widget names
682 Delete all Tcl commands created for
685 for name in self._tclCommands:
716 """Set a new color scheme for all widget elements.
775 """Return a boolean value for Tcl boolean values true and false given as parameter."""
779 raise ValueError("invalid literal for getboolean()")
818 for this widget gets the focus from the window manager."""
842 """Return previous widget in the focus order. See tk_focusNext for details."""
870 # Required for callable classes (bpo-44404)
931 A widget specified for the optional displayof keyword
955 """Release grab for this widget if currently set."""
959 """Set grab for this widget.
966 """Set global grab for this widget.
981 """Set a VALUE (second parameter) for an option
995 """Return the value for an option NAME for this widget
1098 """Return number of cells in the colormap for this widget."""
1105 for child in self.tk.splitlist(
1108 # Tcl sometimes returns extra windows, e.g. for
1142 """Return the number of pixels for the given distance NUMBER
1148 """Return geometry string for this widget in the form "widthxheight+X+Y"."""
1157 """Return identifier ID for this widget."""
1161 """Return the name of all Tcl interpreters for this display."""
1171 """Return the window manager name for this widget."""
1219 """Return a tuple of integer RGB values in range(65536) for color in this widget."""
1271 staticcolor, staticgray, or truecolor for the default
1298 staticcolor, staticgray, or truecolor for the
1303 """Return the X identifier for the visual for this widget."""
1307 """Return a list of all visuals available for the screen
1314 data = [self.tk.splitlist(x) for x in self.tk.splitlist(data)]
1315 return [self.__winfo_parseitem(x) for x in data]
1379 """Set or get the list of bindtags for this widget.
1423 Leave and DETAIL is the button number for ButtonPress,
1424 ButtonRelease and DETAIL is the Keysym for KeyPress and
1426 <Control-Button-1> for pressing Control and mouse button 1 or
1427 <Alt-A> for pressing A and the Alt key (KeyPress can be omitted).
1451 """Unbind for this widget for event SEQUENCE the
1461 it will replace the previous function. See bind for the return value."""
1465 """Unbind for all widgets for event SEQUENCE all functions."""
1473 whether it will replace the previous function. See bind for
1479 """Unbind for all widgets with bindtag CLASSNAME for event SEQUENCE
1531 for k, v in cnf.items():
1538 for item in v:
1560 for n in name:
1619 # serial field: valid for all events
1624 # time field: "valid for events that contain a time field"
1627 # x field: "valid for events that contain an x field"
1628 # y field: "valid for events that contain a y field"
1673 for x in self.tk.splitlist(self.tk.call(*args)):
1698 The values for resources are specified as keyword
1707 """Return the resource value for a KEY given as string."""
1718 return [splitlist(x)[0][1:] for x in
1733 """Set or get the status for propagation of geometry information.
1750 return [self._nametowidget(x) for x in
1760 return [self._nametowidget(x) for x in
1777 """Return a tuple of integer coordinates for the bounding
1851 """Set or get the status for propagation of geometry information.
1888 return [self._nametowidget(x) for x in
1892 # Support for the "event" command, new in Tk 4.2.
1912 for k, v in kw.items():
1956 """Mix-in class for querying and changing the horizontal position
1977 """Mix-in class for querying and changing the vertical position
1998 """Provides functions for the communication with the window manager."""
2017 their values. The second form returns the value for the specific
2054 for x in self.tk.splitlist(self.tk.call(args))]
2092 """Return identifier for decorative frame of this widget if present."""
2118 """Set the group leader widgets for related widgets to PATHNAME. Return
2125 """Set bitmap for the iconified widget to BITMAP. Return
2129 for the widget and any descendants that don't have an icon set
2132 documentation for more information."""
2147 """Set mask for the icon bitmap of this widget. Return the
2154 """Set the name of the icon for this widget. Return the name if
2161 """Sets the titlebar icon for this window based on the named photo
2211 """Set max WIDTH and HEIGHT for this widget. If the window is gridded
2220 """Set min WIDTH and HEIGHT for this widget. If the window is gridded
2246 """Bind function FUNC to command NAME for this widget.
2309 be created. BASENAME will be used for the identification of the profile file (see
2367 for c in list(self.children.values()): c.destroy()
2415 # ...), with pack(), place() and grid() being short for
2417 # forget() being short for pack_forget(). As a practical matter, I'm
2423 # toplevel and interior widgets). Again, for compatibility, these are
2459 """Unmap this widget and do not use it for the packing order."""
2466 for this widget."""
2518 for this widget."""
2569 for positioning this widget in a grid."""
2625 classes = [(k, v) for k, v in cnf.items() if isinstance(k, type)]
2626 for k, v in classes:
2630 for k, v in classes:
2635 for c in list(self.children.values()): c.destroy()
2649 Base class for a widget which can be positioned with the geometry managers
2655 """Toplevel widget, e.g. for dialogs."""
2667 for wmkey in ['screen', 'class_', 'class', 'visual',
2784 """Return a tuple of X1,Y1,X2,Y2 coordinates for a rectangle
2790 """Unbind for all items with TAGORID for event SEQUENCE the
2801 replace the previous function. See bind for the return value."""
2818 """Return a list of coordinates for the item given in ARGS."""
2820 return [self.tk.getdouble(x) for x in
2948 """Return the resource value for an OPTION for item TAGORID."""
2955 The values for resources are specified as keyword
2964 # so the preferred name for them is tag_lower, tag_raise
3235 """Return a tuple of X1,Y1,X2,Y2 coordinates for a rectangle
3316 """Return the resource value for an ITEM and an OPTION."""
3323 The values for resources are specified as keyword arguments.
3412 for i in range(num_index1, num_index2 + 1):
3420 """Return the resource value of a menu item for OPTION at INDEX."""
3641 (and this holds for each of the possible options).
3644 args. The result is a list of integers, one for the result of each
3650 args = ['-%s' % arg for arg in args]
3684 If the 'command' argument is given, it is called once for each element
3703 for key in kw:
3802 """Return the index in the form line.char for INDEX."""
3812 Return the current value if None is given for DIRECTION."""
3854 See the method insert for some more information about args, and the
3855 method delete for information about the indices."""
3899 """Unbind for all characters with TAGNAME for event SEQUENCE the
3910 replace the previous function. See bind for the return value."""
3915 """Return the value of OPTION for tag TAGNAME."""
3943 """Return a list of start and end index for the first sequence of
3950 """Return a list of start and end index for the first sequence of
4039 for v in values:
4056 """Base class for images."""
4070 for k, v in cnf.items():
4096 for k, v in _cnfmerge(kw).items():
4258 """Return a tuple of X1,Y1,X2,Y2 coordinates for a
4358 end of the selection is made the anchor point for future
4459 All geometry management options for child will be forgotten.
4503 """Return the current x and y pair for the sash given by index.
4510 given to the last sash coord command for the given sash. It then
4517 """Records x and y for the sash given by index;
4529 """Query a management option for window.
4537 """Query or modify the management options for window.
4540 of the available options for pathName. If option is
4557 Specify a height for the window. The height will be the
4568 for horizontal panedwindows, the y dimension for
4594 Specify a width for the window. The width will be
4642 __all__ = [name for name, obj in globals().items()