# Copyright (C) 2001-2018, Python Software Foundation # For licence information, see README file. # msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-01-15 22:33+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: library/tkinter.ttk.rst:2 msgid ":mod:`tkinter.ttk` --- Tk themed widgets" msgstr "" #: library/tkinter.ttk.rst:9 #, fuzzy msgid "**Source code:** :source:`Lib/tkinter/ttk.py`" msgstr "**Code sourceĀ :** :source:`Lib/tkinter/__init__.py`" #: library/tkinter.ttk.rst:15 msgid "" "The :mod:`tkinter.ttk` module provides access to the Tk themed widget set, " "introduced in Tk 8.5. It provides additional benefits including anti-aliased " "font rendering under X11 and window transparency (requiring a composition " "window manager on X11)." msgstr "" #: library/tkinter.ttk.rst:20 msgid "" "The basic idea for :mod:`tkinter.ttk` is to separate, to the extent " "possible, the code implementing a widget's behavior from the code " "implementing its appearance." msgstr "" #: library/tkinter.ttk.rst:27 msgid "" "`Tk Widget Styling Support `_" msgstr "" #: library/tkinter.ttk.rst:28 msgid "A document introducing theming support for Tk" msgstr "" #: library/tkinter.ttk.rst:32 msgid "Using Ttk" msgstr "" #: library/tkinter.ttk.rst:34 msgid "To start using Ttk, import its module::" msgstr "" #: library/tkinter.ttk.rst:38 msgid "" "To override the basic Tk widgets, the import should follow the Tk import::" msgstr "" #: library/tkinter.ttk.rst:43 msgid "" "That code causes several :mod:`tkinter.ttk` widgets (:class:`Button`, :class:" "`Checkbutton`, :class:`Entry`, :class:`Frame`, :class:`Label`, :class:" "`LabelFrame`, :class:`Menubutton`, :class:`PanedWindow`, :class:" "`Radiobutton`, :class:`Scale` and :class:`Scrollbar`) to automatically " "replace the Tk widgets." msgstr "" #: library/tkinter.ttk.rst:49 msgid "" "This has the direct benefit of using the new widgets which gives a better " "look and feel across platforms; however, the replacement widgets are not " "completely compatible. The main difference is that widget options such as " "\"fg\", \"bg\" and others related to widget styling are no longer present in " "Ttk widgets. Instead, use the :class:`ttk.Style` class for improved " "styling effects." msgstr "" #: library/tkinter.ttk.rst:60 msgid "" "`Converting existing applications to use Tile widgets `_" msgstr "" #: library/tkinter.ttk.rst:60 msgid "" "A monograph (using Tcl terminology) about differences typically encountered " "when moving applications to use the new widgets." msgstr "" #: library/tkinter.ttk.rst:65 msgid "Ttk Widgets" msgstr "" #: library/tkinter.ttk.rst:67 msgid "" "Ttk comes with 18 widgets, twelve of which already existed in tkinter: :" "class:`Button`, :class:`Checkbutton`, :class:`Entry`, :class:`Frame`, :class:" "`Label`, :class:`LabelFrame`, :class:`Menubutton`, :class:`PanedWindow`, :" "class:`Radiobutton`, :class:`Scale`, :class:`Scrollbar`, and :class:" "`Spinbox`. The other six are new: :class:`Combobox`, :class:`Notebook`, :" "class:`Progressbar`, :class:`Separator`, :class:`Sizegrip` and :class:" "`Treeview`. And all them are subclasses of :class:`Widget`." msgstr "" #: library/tkinter.ttk.rst:75 msgid "" "Using the Ttk widgets gives the application an improved look and feel. As " "discussed above, there are differences in how the styling is coded." msgstr "" #: library/tkinter.ttk.rst:78 msgid "Tk code::" msgstr "" #: library/tkinter.ttk.rst:84 msgid "Ttk code::" msgstr "" #: library/tkinter.ttk.rst:92 msgid "" "For more information about TtkStyling_, see the :class:`Style` class " "documentation." msgstr "" #: library/tkinter.ttk.rst:96 msgid "Widget" msgstr "" #: library/tkinter.ttk.rst:98 msgid "" ":class:`ttk.Widget` defines standard options and methods supported by Tk " "themed widgets and is not supposed to be directly instantiated." msgstr "" #: library/tkinter.ttk.rst:103 msgid "Standard Options" msgstr "" #: library/tkinter.ttk.rst:105 msgid "All the :mod:`ttk` Widgets accepts the following options:" msgstr "" #: library/tkinter.ttk.rst:145 library/tkinter.ttk.rst:214 #: library/tkinter.ttk.rst:403 library/tkinter.ttk.rst:505 #: library/tkinter.ttk.rst:740 library/tkinter.ttk.rst:859 #: library/tkinter.ttk.rst:887 msgid "Option" msgstr "Option" #: library/tkinter.ttk.rst:145 library/tkinter.ttk.rst:214 #: library/tkinter.ttk.rst:317 library/tkinter.ttk.rst:479 #: library/tkinter.ttk.rst:669 library/tkinter.ttk.rst:808 #: library/tkinter.ttk.rst:887 library/tkinter.ttk.rst:932 msgid "Description" msgstr "Description" #: library/tkinter.ttk.rst:112 msgid "class" msgstr "classe" #: library/tkinter.ttk.rst:112 msgid "" "Specifies the window class. The class is used when querying the option " "database for the window's other options, to determine the default bindtags " "for the window, and to select the widget's default layout and style. This " "option is read-only, and may only be specified when the window is created." msgstr "" #: library/tkinter.ttk.rst:119 msgid "cursor" msgstr "*cursor*" #: library/tkinter.ttk.rst:119 msgid "" "Specifies the mouse cursor to be used for the widget. If set to the empty " "string (the default), the cursor is inherited for the parent widget." msgstr "" #: library/tkinter.ttk.rst:123 msgid "takefocus" msgstr "" #: library/tkinter.ttk.rst:123 msgid "" "Determines whether the window accepts the focus during keyboard traversal. " "0, 1 or an empty string is returned. If 0 is returned, it means that the " "window should be skipped entirely during keyboard traversal. If 1, it means " "that the window should receive the input focus as long as it is viewable. " "And an empty string means that the traversal scripts make the decision about " "whether or not to focus on the window." msgstr "" #: library/tkinter.ttk.rst:132 msgid "style" msgstr "" #: library/tkinter.ttk.rst:132 msgid "May be used to specify a custom widget style." msgstr "" #: library/tkinter.ttk.rst:137 msgid "Scrollable Widget Options" msgstr "" #: library/tkinter.ttk.rst:139 msgid "" "The following options are supported by widgets that are controlled by a " "scrollbar." msgstr "" #: library/tkinter.ttk.rst:147 msgid "xscrollcommand" msgstr "" #: library/tkinter.ttk.rst:147 msgid "Used to communicate with horizontal scrollbars." msgstr "" #: library/tkinter.ttk.rst:149 msgid "" "When the view in the widget's window change, the widget will generate a Tcl " "command based on the scrollcommand." msgstr "" #: library/tkinter.ttk.rst:152 msgid "" "Usually this option consists of the method :meth:`Scrollbar.set` of some " "scrollbar. This will cause the scrollbar to be updated whenever the view in " "the window changes." msgstr "" #: library/tkinter.ttk.rst:157 msgid "yscrollcommand" msgstr "" #: library/tkinter.ttk.rst:157 msgid "" "Used to communicate with vertical scrollbars. For some more information, see " "above." msgstr "" #: library/tkinter.ttk.rst:163 msgid "Label Options" msgstr "" #: library/tkinter.ttk.rst:165 msgid "" "The following options are supported by labels, buttons and other button-like " "widgets." msgstr "" #: library/tkinter.ttk.rst:521 library/tkinter.ttk.rst:861 msgid "text" msgstr "" #: library/tkinter.ttk.rst:173 msgid "Specifies a text string to be displayed inside the widget." msgstr "" #: library/tkinter.ttk.rst:339 msgid "textvariable" msgstr "" #: library/tkinter.ttk.rst:175 msgid "" "Specifies a name whose value will be used in place of the text option " "resource." msgstr "" #: library/tkinter.ttk.rst:530 msgid "underline" msgstr "" #: library/tkinter.ttk.rst:178 msgid "" "If set, specifies the index (0-based) of a character to underline in the " "text string. The underline character is used for mnemonic activation." msgstr "" #: library/tkinter.ttk.rst:523 library/tkinter.ttk.rst:895 msgid "image" msgstr "" #: library/tkinter.ttk.rst:182 msgid "" "Specifies an image to display. This is a list of 1 or more elements. The " "first element is the default image name. The rest of the list if a sequence " "of statespec/value pairs as defined by :meth:`Style.map`, specifying " "different images to use when the widget is in a particular state or a " "combination of states. All images in the list should have the same size." msgstr "" #: library/tkinter.ttk.rst:526 msgid "compound" msgstr "" #: library/tkinter.ttk.rst:190 msgid "" "Specifies how to display the image relative to the text, in the case both " "text and images options are present. Valid values are:" msgstr "" #: library/tkinter.ttk.rst:194 msgid "text: display text only" msgstr "" #: library/tkinter.ttk.rst:195 msgid "image: display image only" msgstr "" #: library/tkinter.ttk.rst:196 msgid "" "top, bottom, left, right: display image above, below, left of, or right of " "the text, respectively." msgstr "" #: library/tkinter.ttk.rst:198 msgid "none: the default. display the image if present, otherwise the text." msgstr "" #: library/tkinter.ttk.rst:347 library/tkinter.ttk.rst:491 msgid "width" msgstr "width" #: library/tkinter.ttk.rst:201 msgid "" "If greater than zero, specifies how much space, in character widths, to " "allocate for the text label, if less than zero, specifies a minimum width. " "If zero or unspecified, the natural width of the text label is used." msgstr "" #: library/tkinter.ttk.rst:209 msgid "Compatibility Options" msgstr "" #: library/tkinter.ttk.rst:332 library/tkinter.ttk.rst:507 msgid "state" msgstr "state" #: library/tkinter.ttk.rst:216 msgid "" "May be set to \"normal\" or \"disabled\" to control the \"disabled\" state " "bit. This is a write-only option: setting it changes the widget state, but " "the :meth:`Widget.state` method does not affect this option." msgstr "" #: library/tkinter.ttk.rst:223 msgid "Widget States" msgstr "" #: library/tkinter.ttk.rst:225 msgid "The widget state is a bitmap of independent state flags." msgstr "" #: library/tkinter.ttk.rst:230 msgid "Flag" msgstr "Option" #: library/tkinter.ttk.rst:232 msgid "active" msgstr "" #: library/tkinter.ttk.rst:232 msgid "" "The mouse cursor is over the widget and pressing a mouse button will cause " "some action to occur" msgstr "" #: library/tkinter.ttk.rst:235 msgid "disabled" msgstr "" #: library/tkinter.ttk.rst:235 msgid "Widget is disabled under program control" msgstr "" #: library/tkinter.ttk.rst:237 msgid "focus" msgstr "focus" #: library/tkinter.ttk.rst:237 msgid "Widget has keyboard focus" msgstr "" #: library/tkinter.ttk.rst:239 msgid "pressed" msgstr "" #: library/tkinter.ttk.rst:239 msgid "Widget is being pressed" msgstr "" #: library/tkinter.ttk.rst:241 msgid "selected" msgstr "" #: library/tkinter.ttk.rst:241 msgid "" "\"On\", \"true\", or \"current\" for things like Checkbuttons and " "radiobuttons" msgstr "" #: library/tkinter.ttk.rst:891 msgid "background" msgstr "" #: library/tkinter.ttk.rst:244 msgid "" "Windows and Mac have a notion of an \"active\" or foreground window. The " "*background* state is set for widgets in a background window, and cleared " "for those in the foreground window" msgstr "" #: library/tkinter.ttk.rst:249 msgid "readonly" msgstr "" #: library/tkinter.ttk.rst:249 msgid "Widget should not allow user modification" msgstr "" #: library/tkinter.ttk.rst:251 msgid "alternate" msgstr "" #: library/tkinter.ttk.rst:251 msgid "A widget-specific alternate display format" msgstr "" #: library/tkinter.ttk.rst:253 msgid "invalid" msgstr "" #: library/tkinter.ttk.rst:253 msgid "The widget's value is invalid" msgstr "" #: library/tkinter.ttk.rst:256 msgid "" "A state specification is a sequence of state names, optionally prefixed with " "an exclamation point indicating that the bit is off." msgstr "" #: library/tkinter.ttk.rst:261 msgid "ttk.Widget" msgstr "" #: library/tkinter.ttk.rst:263 msgid "" "Besides the methods described below, the :class:`ttk.Widget` supports the " "methods :meth:`tkinter.Widget.cget` and :meth:`tkinter.Widget.configure`." msgstr "" #: library/tkinter.ttk.rst:270 msgid "" "Returns the name of the element at position *x* *y*, or the empty string if " "the point does not lie within any element." msgstr "" #: library/tkinter.ttk.rst:273 msgid "*x* and *y* are pixel coordinates relative to the widget." msgstr "" #: library/tkinter.ttk.rst:278 msgid "" "Test the widget's state. If a callback is not specified, returns ``True`` if " "the widget state matches *statespec* and ``False`` otherwise. If callback is " "specified then it is called with args if widget state matches *statespec*." msgstr "" #: library/tkinter.ttk.rst:286 msgid "" "Modify or inquire widget state. If *statespec* is specified, sets the widget " "state according to it and return a new *statespec* indicating which flags " "were changed. If *statespec* is not specified, returns the currently enabled " "state flags." msgstr "" #: library/tkinter.ttk.rst:291 msgid "*statespec* will usually be a list or a tuple." msgstr "" #: library/tkinter.ttk.rst:295 msgid "Combobox" msgstr "" #: library/tkinter.ttk.rst:297 msgid "" "The :class:`ttk.Combobox` widget combines a text field with a pop-down list " "of values. This widget is a subclass of :class:`Entry`." msgstr "" #: library/tkinter.ttk.rst:300 msgid "" "Besides the methods inherited from :class:`Widget`: :meth:`Widget.cget`, :" "meth:`Widget.configure`, :meth:`Widget.identify`, :meth:`Widget.instate` " "and :meth:`Widget.state`, and the following inherited from :class:`Entry`: :" "meth:`Entry.bbox`, :meth:`Entry.delete`, :meth:`Entry.icursor`, :meth:`Entry." "index`, :meth:`Entry.insert`, :meth:`Entry.selection`, :meth:`Entry.xview`, " "it has some other methods, described at :class:`ttk.Combobox`." msgstr "" #: library/tkinter.ttk.rst:396 library/tkinter.ttk.rst:662 #: library/tkinter.ttk.rst:801 msgid "Options" msgstr "Options" #: library/tkinter.ttk.rst:398 library/tkinter.ttk.rst:664 #: library/tkinter.ttk.rst:803 msgid "This widget accepts the following specific options:" msgstr "" #: library/tkinter.ttk.rst:319 msgid "exportselection" msgstr "" #: library/tkinter.ttk.rst:319 msgid "" "Boolean value. If set, the widget selection is linked to the Window Manager " "selection (which can be returned by invoking Misc.selection_get, for " "example)." msgstr "" #: library/tkinter.ttk.rst:323 msgid "justify" msgstr "*justify*" #: library/tkinter.ttk.rst:323 msgid "" "Specifies how the text is aligned within the widget. One of \"left\", " "\"center\", or \"right\"." msgstr "" #: library/tkinter.ttk.rst:481 library/tkinter.ttk.rst:818 msgid "height" msgstr "height" #: library/tkinter.ttk.rst:326 msgid "Specifies the height of the pop-down listbox, in rows." msgstr "" #: library/tkinter.ttk.rst:328 msgid "postcommand" msgstr "" #: library/tkinter.ttk.rst:328 msgid "" "A script (possibly registered with Misc.register) that is called immediately " "before displaying the values. It may specify which values to display." msgstr "" #: library/tkinter.ttk.rst:332 msgid "" "One of \"normal\", \"readonly\", or \"disabled\". In the \"readonly\" state, " "the value may not be edited directly, and the user can only selection of the " "values from the dropdown list. In the \"normal\" state, the text field is " "directly editable. In the \"disabled\" state, no interaction is possible." msgstr "" #: library/tkinter.ttk.rst:339 msgid "" "Specifies a name whose value is linked to the widget value. Whenever the " "value associated with that name changes, the widget value is updated, and " "vice versa. See :class:`tkinter.StringVar`." msgstr "" #: library/tkinter.ttk.rst:417 library/tkinter.ttk.rst:865 msgid "values" msgstr "valeurs" #: library/tkinter.ttk.rst:344 msgid "Specifies the list of values to display in the drop-down listbox." msgstr "" #: library/tkinter.ttk.rst:347 msgid "" "Specifies an integer value indicating the desired width of the entry window, " "in average-size characters of the widget's font." msgstr "" #: library/tkinter.ttk.rst:442 msgid "Virtual events" msgstr "" #: library/tkinter.ttk.rst:356 msgid "" "The combobox widgets generates a **<>** virtual event when " "the user selects an element from the list of values." msgstr "" #: library/tkinter.ttk.rst:361 msgid "ttk.Combobox" msgstr "" #: library/tkinter.ttk.rst:367 msgid "" "If *newindex* is specified, sets the combobox value to the element position " "*newindex*. Otherwise, returns the index of the current value or -1 if the " "current value is not in the values list." msgstr "" #: library/tkinter.ttk.rst:374 msgid "Returns the current value of the combobox." msgstr "" #: library/tkinter.ttk.rst:379 msgid "Sets the value of the combobox to *value*." msgstr "" #: library/tkinter.ttk.rst:383 msgid "Spinbox" msgstr "" #: library/tkinter.ttk.rst:384 msgid "" "The :class:`ttk.Spinbox` widget is a :class:`ttk.Entry` enhanced with " "increment and decrement arrows. It can be used for numbers or lists of " "string values. This widget is a subclass of :class:`Entry`." msgstr "" #: library/tkinter.ttk.rst:388 msgid "" "Besides the methods inherited from :class:`Widget`: :meth:`Widget.cget`, :" "meth:`Widget.configure`, :meth:`Widget.identify`, :meth:`Widget.instate` " "and :meth:`Widget.state`, and the following inherited from :class:`Entry`: :" "meth:`Entry.bbox`, :meth:`Entry.delete`, :meth:`Entry.icursor`, :meth:`Entry." "index`, :meth:`Entry.insert`, :meth:`Entry.xview`, it has some other " "methods, described at :class:`ttk.Spinbox`." msgstr "" #: library/tkinter.ttk.rst:405 msgid "from" msgstr "" #: library/tkinter.ttk.rst:405 msgid "" "Float value. If set, this is the minimum value to which the decrement " "button will decrement. Must be spelled as ``from_`` when used as an " "argument, since ``from`` is a Python keyword." msgstr "" #: library/tkinter.ttk.rst:410 msgid "to" msgstr "" #: library/tkinter.ttk.rst:410 msgid "" "Float value. If set, this is the maximum value to which the increment " "button will increment." msgstr "" #: library/tkinter.ttk.rst:413 msgid "increment" msgstr "" #: library/tkinter.ttk.rst:413 msgid "" "Float value. Specifies the amount which the increment/decrement buttons " "change the value. Defaults to 1.0." msgstr "" #: library/tkinter.ttk.rst:417 msgid "" "Sequence of string or float values. If specified, the increment/decrement " "buttons will cycle through the items in this sequence rather than " "incrementing or decrementing numbers." msgstr "" #: library/tkinter.ttk.rst:423 msgid "wrap" msgstr "" #: library/tkinter.ttk.rst:423 msgid "" "Boolean value. If ``True``, increment and decrement buttons will cycle from " "the ``to`` value to the ``from`` value or the ``from`` value to the ``to`` " "value, respectively." msgstr "" #: library/tkinter.ttk.rst:428 msgid "format" msgstr "format" #: library/tkinter.ttk.rst:428 msgid "" "String value. This specifies the format of numbers set by the increment/" "decrement buttons. It must be in the form \"%W.Pf\", where W is the padded " "width of the value, P is the precision, and '%' and 'f' are literal." msgstr "" #: library/tkinter.ttk.rst:434 msgid "command" msgstr "" #: library/tkinter.ttk.rst:434 msgid "" "Python callable. Will be called with no arguments whenever either of the " "increment or decrement buttons are pressed." msgstr "" #: library/tkinter.ttk.rst:444 msgid "" "The spinbox widget generates an **<>** virtual event when the " "user presses , and a **<>** virtual event when the user " "presses ." msgstr "" #: library/tkinter.ttk.rst:449 msgid "ttk.Spinbox" msgstr "" #: library/tkinter.ttk.rst:455 msgid "Returns the current value of the spinbox." msgstr "" #: library/tkinter.ttk.rst:460 msgid "Sets the value of the spinbox to *value*." msgstr "" #: library/tkinter.ttk.rst:464 msgid "Notebook" msgstr "" #: library/tkinter.ttk.rst:466 msgid "" "Ttk Notebook widget manages a collection of windows and displays a single " "one at a time. Each child window is associated with a tab, which the user " "may select to change the currently displayed window." msgstr "" #: library/tkinter.ttk.rst:481 msgid "" "If present and greater than zero, specifies the desired height of the pane " "area (not including internal padding or tabs). Otherwise, the maximum height " "of all panes is used." msgstr "" #: library/tkinter.ttk.rst:517 library/tkinter.ttk.rst:822 msgid "padding" msgstr "" #: library/tkinter.ttk.rst:485 msgid "" "Specifies the amount of extra space to add around the outside of the " "notebook. The padding is a list up to four length specifications left top " "right bottom. If fewer than four elements are specified, bottom defaults to " "top, right defaults to left, and top defaults to left." msgstr "" #: library/tkinter.ttk.rst:491 msgid "" "If present and greater than zero, specified the desired width of the pane " "area (not including internal padding). Otherwise, the maximum width of all " "panes is used." msgstr "" #: library/tkinter.ttk.rst:498 msgid "Tab Options" msgstr "" #: library/tkinter.ttk.rst:500 msgid "There are also specific options for tabs:" msgstr "" #: library/tkinter.ttk.rst:507 msgid "" "Either \"normal\", \"disabled\" or \"hidden\". If \"disabled\", then the tab " "is not selectable. If \"hidden\", then the tab is not shown." msgstr "" #: library/tkinter.ttk.rst:511 msgid "sticky" msgstr "" #: library/tkinter.ttk.rst:511 msgid "" "Specifies how the child window is positioned within the pane area. Value is " "a string containing zero or more of the characters \"n\", \"s\", \"e\" or " "\"w\". Each letter refers to a side (north, south, east or west) that the " "child window will stick to, as per the :meth:`grid` geometry manager." msgstr "" #: library/tkinter.ttk.rst:517 msgid "" "Specifies the amount of extra space to add between the notebook and this " "pane. Syntax is the same as for the option padding used by this widget." msgstr "" #: library/tkinter.ttk.rst:521 msgid "Specifies a text to be displayed in the tab." msgstr "" #: library/tkinter.ttk.rst:523 msgid "" "Specifies an image to display in the tab. See the option image described in :" "class:`Widget`." msgstr "" #: library/tkinter.ttk.rst:526 msgid "" "Specifies how to display the image relative to the text, in the case both " "options text and image are present. See `Label Options`_ for legal values." msgstr "" #: library/tkinter.ttk.rst:530 msgid "" "Specifies the index (0-based) of a character to underline in the text " "string. The underlined character is used for mnemonic activation if :meth:" "`Notebook.enable_traversal` is called." msgstr "" #: library/tkinter.ttk.rst:538 msgid "Tab Identifiers" msgstr "" #: library/tkinter.ttk.rst:540 msgid "" "The tab_id present in several methods of :class:`ttk.Notebook` may take any " "of the following forms:" msgstr "" #: library/tkinter.ttk.rst:543 msgid "An integer between zero and the number of tabs" msgstr "" #: library/tkinter.ttk.rst:544 msgid "The name of a child window" msgstr "" #: library/tkinter.ttk.rst:545 msgid "" "A positional specification of the form \"@x,y\", which identifies the tab" msgstr "" #: library/tkinter.ttk.rst:546 msgid "" "The literal string \"current\", which identifies the currently selected tab" msgstr "" #: library/tkinter.ttk.rst:547 msgid "" "The literal string \"end\", which returns the number of tabs (only valid " "for :meth:`Notebook.index`)" msgstr "" #: library/tkinter.ttk.rst:925 msgid "Virtual Events" msgstr "" #: library/tkinter.ttk.rst:554 msgid "" "This widget generates a **<>** virtual event after a new " "tab is selected." msgstr "" #: library/tkinter.ttk.rst:559 msgid "ttk.Notebook" msgstr "" #: library/tkinter.ttk.rst:565 msgid "Adds a new tab to the notebook." msgstr "" #: library/tkinter.ttk.rst:567 msgid "" "If window is currently managed by the notebook but hidden, it is restored to " "its previous position." msgstr "" #: library/tkinter.ttk.rst:608 msgid "See `Tab Options`_ for the list of available options." msgstr "" #: library/tkinter.ttk.rst:575 msgid "" "Removes the tab specified by *tab_id*, unmaps and unmanages the associated " "window." msgstr "" #: library/tkinter.ttk.rst:581 msgid "Hides the tab specified by *tab_id*." msgstr "" #: library/tkinter.ttk.rst:583 msgid "" "The tab will not be displayed, but the associated window remains managed by " "the notebook and its configuration remembered. Hidden tabs may be restored " "with the :meth:`add` command." msgstr "" #: library/tkinter.ttk.rst:590 msgid "" "Returns the name of the tab element at position *x*, *y*, or the empty " "string if none." msgstr "" #: library/tkinter.ttk.rst:596 msgid "" "Returns the numeric index of the tab specified by *tab_id*, or the total " "number of tabs if *tab_id* is the string \"end\"." msgstr "" #: library/tkinter.ttk.rst:602 msgid "Inserts a pane at the specified position." msgstr "" #: library/tkinter.ttk.rst:604 msgid "" "*pos* is either the string \"end\", an integer index, or the name of a " "managed child. If *child* is already managed by the notebook, moves it to " "the specified position." msgstr "" #: library/tkinter.ttk.rst:613 msgid "Selects the specified *tab_id*." msgstr "" #: library/tkinter.ttk.rst:615 msgid "" "The associated child window will be displayed, and the previously selected " "window (if different) is unmapped. If *tab_id* is omitted, returns the " "widget name of the currently selected pane." msgstr "" #: library/tkinter.ttk.rst:622 msgid "Query or modify the options of the specific *tab_id*." msgstr "" #: library/tkinter.ttk.rst:624 msgid "" "If *kw* is not given, returns a dictionary of the tab option values. If " "*option* is specified, returns the value of that *option*. Otherwise, sets " "the options to the corresponding values." msgstr "" #: library/tkinter.ttk.rst:631 msgid "Returns a list of windows managed by the notebook." msgstr "" #: library/tkinter.ttk.rst:636 msgid "" "Enable keyboard traversal for a toplevel window containing this notebook." msgstr "" #: library/tkinter.ttk.rst:638 msgid "" "This will extend the bindings for the toplevel window containing the " "notebook as follows:" msgstr "" #: library/tkinter.ttk.rst:641 msgid "" ":kbd:`Control-Tab`: selects the tab following the currently selected one." msgstr "" #: library/tkinter.ttk.rst:642 msgid "" ":kbd:`Shift-Control-Tab`: selects the tab preceding the currently selected " "one." msgstr "" #: library/tkinter.ttk.rst:643 msgid "" ":kbd:`Alt-K`: where *K* is the mnemonic (underlined) character of any tab, " "will select that tab." msgstr "" #: library/tkinter.ttk.rst:646 msgid "" "Multiple notebooks in a single toplevel may be enabled for traversal, " "including nested notebooks. However, notebook traversal only works properly " "if all panes have the notebook they are in as master." msgstr "" #: library/tkinter.ttk.rst:652 msgid "Progressbar" msgstr "" #: library/tkinter.ttk.rst:654 msgid "" "The :class:`ttk.Progressbar` widget shows the status of a long-running " "operation. It can operate in two modes: 1) the determinate mode which shows " "the amount completed relative to the total amount of work to be done and 2) " "the indeterminate mode which provides an animated display to let the user " "know that work is progressing." msgstr "" #: library/tkinter.ttk.rst:742 msgid "orient" msgstr "" #: library/tkinter.ttk.rst:671 msgid "" "One of \"horizontal\" or \"vertical\". Specifies the orientation of the " "progress bar." msgstr "" #: library/tkinter.ttk.rst:674 msgid "length" msgstr "" #: library/tkinter.ttk.rst:674 msgid "" "Specifies the length of the long axis of the progress bar (width if " "horizontal, height if vertical)." msgstr "" #: library/tkinter.ttk.rst:677 msgid "mode" msgstr "mode" #: library/tkinter.ttk.rst:677 msgid "One of \"determinate\" or \"indeterminate\"." msgstr "" #: library/tkinter.ttk.rst:679 msgid "maximum" msgstr "" #: library/tkinter.ttk.rst:679 msgid "A number specifying the maximum value. Defaults to 100." msgstr "" #: library/tkinter.ttk.rst:681 msgid "value" msgstr "valeur" #: library/tkinter.ttk.rst:681 msgid "" "The current value of the progress bar. In \"determinate\" mode, this " "represents the amount of work completed. In \"indeterminate\" mode, it is " "interpreted as modulo *maximum*; that is, the progress bar completes one " "\"cycle\" when its value increases by *maximum*." msgstr "" #: library/tkinter.ttk.rst:687 msgid "variable" msgstr "" #: library/tkinter.ttk.rst:687 msgid "" "A name which is linked to the option value. If specified, the value of the " "progress bar is automatically set to the value of this name whenever the " "latter is modified." msgstr "" #: library/tkinter.ttk.rst:691 msgid "phase" msgstr "" #: library/tkinter.ttk.rst:691 msgid "" "Read-only option. The widget periodically increments the value of this " "option whenever its value is greater than 0 and, in determinate mode, less " "than maximum. This option may be used by the current theme to provide " "additional animation effects." msgstr "" #: library/tkinter.ttk.rst:699 msgid "ttk.Progressbar" msgstr "" #: library/tkinter.ttk.rst:705 msgid "" "Begin autoincrement mode: schedules a recurring timer event that calls :meth:" "`Progressbar.step` every *interval* milliseconds. If omitted, *interval* " "defaults to 50 milliseconds." msgstr "" #: library/tkinter.ttk.rst:712 msgid "Increments the progress bar's value by *amount*." msgstr "" #: library/tkinter.ttk.rst:714 msgid "*amount* defaults to 1.0 if omitted." msgstr "" #: library/tkinter.ttk.rst:719 msgid "" "Stop autoincrement mode: cancels any recurring timer event initiated by :" "meth:`Progressbar.start` for this progress bar." msgstr "" #: library/tkinter.ttk.rst:724 msgid "Separator" msgstr "" #: library/tkinter.ttk.rst:726 msgid "" "The :class:`ttk.Separator` widget displays a horizontal or vertical " "separator bar." msgstr "" #: library/tkinter.ttk.rst:729 msgid "" "It has no other methods besides the ones inherited from :class:`ttk.Widget`." msgstr "" #: library/tkinter.ttk.rst:735 msgid "This widget accepts the following specific option:" msgstr "" #: library/tkinter.ttk.rst:742 msgid "" "One of \"horizontal\" or \"vertical\". Specifies the orientation of the " "separator." msgstr "" #: library/tkinter.ttk.rst:748 msgid "Sizegrip" msgstr "" #: library/tkinter.ttk.rst:750 msgid "" "The :class:`ttk.Sizegrip` widget (also known as a grow box) allows the user " "to resize the containing toplevel window by pressing and dragging the grip." msgstr "" #: library/tkinter.ttk.rst:753 msgid "" "This widget has neither specific options nor specific methods, besides the " "ones inherited from :class:`ttk.Widget`." msgstr "" #: library/tkinter.ttk.rst:758 msgid "Platform-specific notes" msgstr "" #: library/tkinter.ttk.rst:760 msgid "" "On macOS, toplevel windows automatically include a built-in size grip by " "default. Adding a :class:`Sizegrip` is harmless, since the built-in grip " "will just mask the widget." msgstr "" #: library/tkinter.ttk.rst:766 msgid "Bugs" msgstr "" #: library/tkinter.ttk.rst:768 msgid "" "If the containing toplevel's position was specified relative to the right or " "bottom of the screen (e.g. ....), the :class:`Sizegrip` widget will not " "resize the window." msgstr "" #: library/tkinter.ttk.rst:771 msgid "This widget supports only \"southeast\" resizing." msgstr "" #: library/tkinter.ttk.rst:775 msgid "Treeview" msgstr "" #: library/tkinter.ttk.rst:777 msgid "" "The :class:`ttk.Treeview` widget displays a hierarchical collection of " "items. Each item has a textual label, an optional image, and an optional " "list of data values. The data values are displayed in successive columns " "after the tree label." msgstr "" #: library/tkinter.ttk.rst:782 msgid "" "The order in which data values are displayed may be controlled by setting " "the widget option ``displaycolumns``. The tree widget can also display " "column headings. Columns may be accessed by number or symbolic names listed " "in the widget option columns. See `Column Identifiers`_." msgstr "" #: library/tkinter.ttk.rst:787 msgid "" "Each item is identified by a unique name. The widget will generate item IDs " "if they are not supplied by the caller. There is a distinguished root item, " "named ``{}``. The root item itself is not displayed; its children appear at " "the top level of the hierarchy." msgstr "" #: library/tkinter.ttk.rst:792 msgid "" "Each item also has a list of tags, which can be used to associate event " "bindings with individual items and control the appearance of the item." msgstr "" #: library/tkinter.ttk.rst:795 msgid "" "The Treeview widget supports horizontal and vertical scrolling, according to " "the options described in `Scrollable Widget Options`_ and the methods :meth:" "`Treeview.xview` and :meth:`Treeview.yview`." msgstr "" #: library/tkinter.ttk.rst:810 msgid "columns" msgstr "" #: library/tkinter.ttk.rst:810 msgid "" "A list of column identifiers, specifying the number of columns and their " "names." msgstr "" #: library/tkinter.ttk.rst:813 msgid "displaycolumns" msgstr "" #: library/tkinter.ttk.rst:813 msgid "" "A list of column identifiers (either symbolic or integer indices) specifying " "which data columns are displayed and the order in which they appear, or the " "string \"#all\"." msgstr "" #: library/tkinter.ttk.rst:818 msgid "" "Specifies the number of rows which should be visible. Note: the requested " "width is determined from the sum of the column widths." msgstr "" #: library/tkinter.ttk.rst:822 msgid "" "Specifies the internal padding for the widget. The padding is a list of up " "to four length specifications." msgstr "" #: library/tkinter.ttk.rst:825 msgid "selectmode" msgstr "" #: library/tkinter.ttk.rst:825 msgid "" "Controls how the built-in class bindings manage the selection. One of " "\"extended\", \"browse\" or \"none\". If set to \"extended\" (the default), " "multiple items may be selected. If \"browse\", only a single item will be " "selected at a time. If \"none\", the selection will not be changed." msgstr "" #: library/tkinter.ttk.rst:832 msgid "" "Note that the application code and tag bindings can set the selection " "however they wish, regardless of the value of this option." msgstr "" #: library/tkinter.ttk.rst:836 msgid "show" msgstr "" #: library/tkinter.ttk.rst:836 msgid "" "A list containing zero or more of the following values, specifying which " "elements of the tree to display." msgstr "" #: library/tkinter.ttk.rst:839 msgid "tree: display tree labels in column #0." msgstr "" #: library/tkinter.ttk.rst:840 msgid "headings: display the heading row." msgstr "" #: library/tkinter.ttk.rst:842 msgid "The default is \"tree headings\", i.e., show all elements." msgstr "" #: library/tkinter.ttk.rst:845 msgid "" "**Note**: Column #0 always refers to the tree column, even if show=\"tree\" " "is not specified." msgstr "" #: library/tkinter.ttk.rst:851 msgid "Item Options" msgstr "" #: library/tkinter.ttk.rst:853 msgid "" "The following item options may be specified for items in the insert and item " "widget commands." msgstr "" #: library/tkinter.ttk.rst:861 msgid "The textual label to display for the item." msgstr "" #: library/tkinter.ttk.rst:863 msgid "A Tk Image, displayed to the left of the label." msgstr "" #: library/tkinter.ttk.rst:865 msgid "The list of values associated with the item." msgstr "" #: library/tkinter.ttk.rst:867 msgid "" "Each item should have the same number of values as the widget option " "columns. If there are fewer values than columns, the remaining values are " "assumed empty. If there are more values than columns, the extra values are " "ignored." msgstr "" #: library/tkinter.ttk.rst:872 msgid "open" msgstr "" #: library/tkinter.ttk.rst:872 msgid "" "``True``/``False`` value indicating whether the item's children should be " "displayed or hidden." msgstr "" #: library/tkinter.ttk.rst:875 msgid "tags" msgstr "" #: library/tkinter.ttk.rst:875 msgid "A list of tags associated with this item." msgstr "" #: library/tkinter.ttk.rst:880 msgid "Tag Options" msgstr "" #: library/tkinter.ttk.rst:882 msgid "The following options may be specified on tags:" msgstr "" #: library/tkinter.ttk.rst:889 msgid "foreground" msgstr "" #: library/tkinter.ttk.rst:889 msgid "Specifies the text foreground color." msgstr "" #: library/tkinter.ttk.rst:891 msgid "Specifies the cell or item background color." msgstr "" #: library/tkinter.ttk.rst:893 msgid "font" msgstr "*font*" #: library/tkinter.ttk.rst:893 msgid "Specifies the font to use when drawing text." msgstr "" #: library/tkinter.ttk.rst:895 msgid "Specifies the item image, in case the item's image option is empty." msgstr "" #: library/tkinter.ttk.rst:901 msgid "Column Identifiers" msgstr "" #: library/tkinter.ttk.rst:903 msgid "Column identifiers take any of the following forms:" msgstr "" #: library/tkinter.ttk.rst:905 msgid "A symbolic name from the list of columns option." msgstr "" #: library/tkinter.ttk.rst:906 msgid "An integer n, specifying the nth data column." msgstr "" #: library/tkinter.ttk.rst:907 msgid "" "A string of the form #n, where n is an integer, specifying the nth display " "column." msgstr "" #: library/tkinter.ttk.rst:910 msgid "Notes:" msgstr "NotesĀ :" #: library/tkinter.ttk.rst:912 msgid "" "Item's option values may be displayed in a different order than the order in " "which they are stored." msgstr "" #: library/tkinter.ttk.rst:914 msgid "" "Column #0 always refers to the tree column, even if show=\"tree\" is not " "specified." msgstr "" #: library/tkinter.ttk.rst:917 msgid "" "A data column number is an index into an item's option values list; a " "display column number is the column number in the tree where the values are " "displayed. Tree labels are displayed in column #0. If option displaycolumns " "is not set, then data column n is displayed in column #n+1. Again, **column " "#0 always refers to the tree column**." msgstr "" #: library/tkinter.ttk.rst:927 msgid "The Treeview widget generates the following virtual events." msgstr "" #: library/tkinter.ttk.rst:932 msgid "Event" msgstr "" #: library/tkinter.ttk.rst:934 msgid "<>" msgstr "" #: library/tkinter.ttk.rst:934 msgid "Generated whenever the selection changes." msgstr "" #: library/tkinter.ttk.rst:936 msgid "<>" msgstr "" #: library/tkinter.ttk.rst:936 msgid "Generated just before settings the focus item to open=True." msgstr "" #: library/tkinter.ttk.rst:939 msgid "<>" msgstr "" #: library/tkinter.ttk.rst:939 msgid "Generated just after setting the focus item to open=False." msgstr "" #: library/tkinter.ttk.rst:943 msgid "" "The :meth:`Treeview.focus` and :meth:`Treeview.selection` methods can be " "used to determine the affected item or items." msgstr "" #: library/tkinter.ttk.rst:948 msgid "ttk.Treeview" msgstr "" #: library/tkinter.ttk.rst:954 msgid "" "Returns the bounding box (relative to the treeview widget's window) of the " "specified *item* in the form (x, y, width, height)." msgstr "" #: library/tkinter.ttk.rst:957 msgid "" "If *column* is specified, returns the bounding box of that cell. If the " "*item* is not visible (i.e., if it is a descendant of a closed item or is " "scrolled offscreen), returns an empty string." msgstr "" #: library/tkinter.ttk.rst:964 msgid "Returns the list of children belonging to *item*." msgstr "" #: library/tkinter.ttk.rst:966 msgid "If *item* is not specified, returns root children." msgstr "" #: library/tkinter.ttk.rst:971 msgid "Replaces *item*'s child with *newchildren*." msgstr "" #: library/tkinter.ttk.rst:973 msgid "" "Children present in *item* that are not present in *newchildren* are " "detached from the tree. No items in *newchildren* may be an ancestor of " "*item*. Note that not specifying *newchildren* results in detaching *item*'s " "children." msgstr "" #: library/tkinter.ttk.rst:981 msgid "Query or modify the options for the specified *column*." msgstr "" #: library/tkinter.ttk.rst:983 msgid "" "If *kw* is not given, returns a dict of the column option values. If " "*option* is specified then the value for that *option* is returned. " "Otherwise, sets the options to the corresponding values." msgstr "" #: library/tkinter.ttk.rst:1042 msgid "The valid options/values are:" msgstr "" #: library/tkinter.ttk.rst:989 msgid "id" msgstr "" #: library/tkinter.ttk.rst:990 msgid "Returns the column name. This is a read-only option." msgstr "" #: library/tkinter.ttk.rst:992 msgid "anchor: One of the standard Tk anchor values." msgstr "" #: library/tkinter.ttk.rst:992 msgid "" "Specifies how the text in this column should be aligned with respect to the " "cell." msgstr "" #: library/tkinter.ttk.rst:996 msgid "minwidth: width" msgstr "" #: library/tkinter.ttk.rst:995 msgid "" "The minimum width of the column in pixels. The treeview widget will not make " "the column any smaller than specified by this option when the widget is " "resized or the user drags a column." msgstr "" #: library/tkinter.ttk.rst:999 msgid "stretch: ``True``/``False``" msgstr "" #: library/tkinter.ttk.rst:999 msgid "" "Specifies whether the column's width should be adjusted when the widget is " "resized." msgstr "" #: library/tkinter.ttk.rst:1002 msgid "width: width" msgstr "" #: library/tkinter.ttk.rst:1002 msgid "The width of the column in pixels." msgstr "" #: library/tkinter.ttk.rst:1004 msgid "To configure the tree column, call this with column = \"#0\"" msgstr "" #: library/tkinter.ttk.rst:1008 msgid "Delete all specified *items* and all their descendants." msgstr "" #: library/tkinter.ttk.rst:1010 msgid "The root item may not be deleted." msgstr "" #: library/tkinter.ttk.rst:1015 msgid "Unlinks all of the specified *items* from the tree." msgstr "" #: library/tkinter.ttk.rst:1017 msgid "" "The items and all of their descendants are still present, and may be " "reinserted at another point in the tree, but will not be displayed." msgstr "" #: library/tkinter.ttk.rst:1020 msgid "The root item may not be detached." msgstr "" #: library/tkinter.ttk.rst:1025 msgid "Returns ``True`` if the specified *item* is present in the tree." msgstr "" #: library/tkinter.ttk.rst:1030 msgid "" "If *item* is specified, sets the focus item to *item*. Otherwise, returns " "the current focus item, or '' if there is none." msgstr "" #: library/tkinter.ttk.rst:1036 msgid "Query or modify the heading options for the specified *column*." msgstr "" #: library/tkinter.ttk.rst:1038 msgid "" "If *kw* is not given, returns a dict of the heading option values. If " "*option* is specified then the value for that *option* is returned. " "Otherwise, sets the options to the corresponding values." msgstr "" #: library/tkinter.ttk.rst:1044 msgid "text: text" msgstr "" #: library/tkinter.ttk.rst:1045 msgid "The text to display in the column heading." msgstr "" #: library/tkinter.ttk.rst:1046 msgid "image: imageName" msgstr "" #: library/tkinter.ttk.rst:1047 msgid "Specifies an image to display to the right of the column heading." msgstr "" #: library/tkinter.ttk.rst:1049 msgid "anchor: anchor" msgstr "" #: library/tkinter.ttk.rst:1049 msgid "" "Specifies how the heading text should be aligned. One of the standard Tk " "anchor values." msgstr "" #: library/tkinter.ttk.rst:1052 msgid "command: callback" msgstr "" #: library/tkinter.ttk.rst:1052 msgid "A callback to be invoked when the heading label is pressed." msgstr "" #: library/tkinter.ttk.rst:1054 msgid "To configure the tree column heading, call this with column = \"#0\"." msgstr "" #: library/tkinter.ttk.rst:1059 msgid "" "Returns a description of the specified *component* under the point given by " "*x* and *y*, or the empty string if no such *component* is present at that " "position." msgstr "" #: library/tkinter.ttk.rst:1066 msgid "Returns the item ID of the item at position *y*." msgstr "" #: library/tkinter.ttk.rst:1071 msgid "Returns the data column identifier of the cell at position *x*." msgstr "" #: library/tkinter.ttk.rst:1073 msgid "The tree column has ID #0." msgstr "" #: library/tkinter.ttk.rst:1078 msgid "Returns one of:" msgstr "" #: library/tkinter.ttk.rst:1081 msgid "region" msgstr "*region*" #: library/tkinter.ttk.rst:1081 msgid "meaning" msgstr "" #: library/tkinter.ttk.rst:1083 msgid "heading" msgstr "" #: library/tkinter.ttk.rst:1083 msgid "Tree heading area." msgstr "" #: library/tkinter.ttk.rst:1085 msgid "separator" msgstr "" #: library/tkinter.ttk.rst:1085 msgid "Space between two columns headings." msgstr "" #: library/tkinter.ttk.rst:1087 msgid "tree" msgstr "*tree* (arbre)" #: library/tkinter.ttk.rst:1087 msgid "The tree area." msgstr "" #: library/tkinter.ttk.rst:1089 msgid "cell" msgstr "" #: library/tkinter.ttk.rst:1089 msgid "A data cell." msgstr "" #: library/tkinter.ttk.rst:1099 msgid "Availability: Tk 8.6." msgstr "" #: library/tkinter.ttk.rst:1097 msgid "Returns the element at position *x*, *y*." msgstr "" #: library/tkinter.ttk.rst:1104 msgid "" "Returns the integer index of *item* within its parent's list of children." msgstr "" #: library/tkinter.ttk.rst:1109 msgid "" "Creates a new item and returns the item identifier of the newly created item." msgstr "" #: library/tkinter.ttk.rst:1112 msgid "" "*parent* is the item ID of the parent item, or the empty string to create a " "new top-level item. *index* is an integer, or the value \"end\", specifying " "where in the list of parent's children to insert the new item. If *index* is " "less than or equal to zero, the new node is inserted at the beginning; if " "*index* is greater than or equal to the current number of children, it is " "inserted at the end. If *iid* is specified, it is used as the item " "identifier; *iid* must not already exist in the tree. Otherwise, a new " "unique identifier is generated." msgstr "" #: library/tkinter.ttk.rst:1121 msgid "See `Item Options`_ for the list of available points." msgstr "" #: library/tkinter.ttk.rst:1126 msgid "Query or modify the options for the specified *item*." msgstr "" #: library/tkinter.ttk.rst:1128 msgid "" "If no options are given, a dict with options/values for the item is " "returned. If *option* is specified then the value for that option is " "returned. Otherwise, sets the options to the corresponding values as given " "by *kw*." msgstr "" #: library/tkinter.ttk.rst:1136 msgid "Moves *item* to position *index* in *parent*'s list of children." msgstr "" #: library/tkinter.ttk.rst:1138 msgid "" "It is illegal to move an item under one of its descendants. If *index* is " "less than or equal to zero, *item* is moved to the beginning; if greater " "than or equal to the number of children, it is moved to the end. If *item* " "was detached it is reattached." msgstr "" #: library/tkinter.ttk.rst:1146 msgid "" "Returns the identifier of *item*'s next sibling, or '' if *item* is the last " "child of its parent." msgstr "" #: library/tkinter.ttk.rst:1152 msgid "" "Returns the ID of the parent of *item*, or '' if *item* is at the top level " "of the hierarchy." msgstr "" #: library/tkinter.ttk.rst:1158 msgid "" "Returns the identifier of *item*'s previous sibling, or '' if *item* is the " "first child of its parent." msgstr "" #: library/tkinter.ttk.rst:1164 msgid "An alias for :meth:`Treeview.move`." msgstr "" #: library/tkinter.ttk.rst:1169 msgid "Ensure that *item* is visible." msgstr "" #: library/tkinter.ttk.rst:1171 msgid "" "Sets all of *item*'s ancestors open option to ``True``, and scrolls the " "widget if necessary so that *item* is within the visible portion of the tree." msgstr "" #: library/tkinter.ttk.rst:1178 msgid "Returns a tuple of selected items." msgstr "" #: library/tkinter.ttk.rst:1180 msgid "" "``selection()`` no longer takes arguments. For changing the selection state " "use the following selection methods." msgstr "" #: library/tkinter.ttk.rst:1187 msgid "*items* becomes the new selection." msgstr "" #: library/tkinter.ttk.rst:1197 library/tkinter.ttk.rst:1213 msgid "" "*items* can be passed as separate arguments, not just as a single tuple." msgstr "" #: library/tkinter.ttk.rst:1195 msgid "Add *items* to the selection." msgstr "" #: library/tkinter.ttk.rst:1203 msgid "Remove *items* from the selection." msgstr "" #: library/tkinter.ttk.rst:1211 msgid "Toggle the selection state of each item in *items*." msgstr "" #: library/tkinter.ttk.rst:1219 msgid "" "With one argument, returns a dictionary of column/value pairs for the " "specified *item*. With two arguments, returns the current value of the " "specified *column*. With three arguments, sets the value of given *column* " "in given *item* to the specified *value*." msgstr "" #: library/tkinter.ttk.rst:1227 msgid "" "Bind a callback for the given event *sequence* to the tag *tagname*. When an " "event is delivered to an item, the callbacks for each of the item's tags " "option are called." msgstr "" #: library/tkinter.ttk.rst:1234 msgid "Query or modify the options for the specified *tagname*." msgstr "" #: library/tkinter.ttk.rst:1236 msgid "" "If *kw* is not given, returns a dict of the option settings for *tagname*. " "If *option* is specified, returns the value for that *option* for the " "specified *tagname*. Otherwise, sets the options to the corresponding values " "for the given *tagname*." msgstr "" #: library/tkinter.ttk.rst:1244 msgid "" "If *item* is specified, returns 1 or 0 depending on whether the specified " "*item* has the given *tagname*. Otherwise, returns a list of all items that " "have the specified tag." msgstr "" #: library/tkinter.ttk.rst:1248 msgid "Availability: Tk 8.6" msgstr "" #: library/tkinter.ttk.rst:1253 msgid "Query or modify horizontal position of the treeview." msgstr "" #: library/tkinter.ttk.rst:1258 msgid "Query or modify vertical position of the treeview." msgstr "" #: library/tkinter.ttk.rst:1264 msgid "Ttk Styling" msgstr "" #: library/tkinter.ttk.rst:1266 msgid "" "Each widget in :mod:`ttk` is assigned a style, which specifies the set of " "elements making up the widget and how they are arranged, along with dynamic " "and default settings for element options. By default the style name is the " "same as the widget's class name, but it may be overridden by the widget's " "style option. If you don't know the class name of a widget, use the method :" "meth:`Misc.winfo_class` (somewidget.winfo_class())." msgstr "" #: library/tkinter.ttk.rst:1275 msgid "" "`Tcl'2004 conference presentation `_" msgstr "" #: library/tkinter.ttk.rst:1276 msgid "This document explains how the theme engine works" msgstr "" #: library/tkinter.ttk.rst:1281 msgid "This class is used to manipulate the style database." msgstr "" #: library/tkinter.ttk.rst:1286 msgid "Query or set the default value of the specified option(s) in *style*." msgstr "" #: library/tkinter.ttk.rst:1288 msgid "" "Each key in *kw* is an option and each value is a string identifying the " "value for that option." msgstr "" #: library/tkinter.ttk.rst:1291 msgid "" "For example, to change every default button to be a flat button with some " "padding and a different background color::" msgstr "" #: library/tkinter.ttk.rst:1310 msgid "Query or sets dynamic values of the specified option(s) in *style*." msgstr "" #: library/tkinter.ttk.rst:1312 msgid "" "Each key in *kw* is an option and each value should be a list or a tuple " "(usually) containing statespecs grouped in tuples, lists, or some other " "preference. A statespec is a compound of one or more states and then a value." msgstr "" #: library/tkinter.ttk.rst:1317 msgid "An example may make it more understandable::" msgstr "" #: library/tkinter.ttk.rst:1335 msgid "" "Note that the order of the (states, value) sequences for an option does " "matter, if the order is changed to ``[('active', 'blue'), ('pressed', " "'red')]`` in the foreground option, for example, the result would be a blue " "foreground when the widget were in active or pressed states." msgstr "" #: library/tkinter.ttk.rst:1343 msgid "Returns the value specified for *option* in *style*." msgstr "" #: library/tkinter.ttk.rst:1345 msgid "" "If *state* is specified, it is expected to be a sequence of one or more " "states. If the *default* argument is set, it is used as a fallback value in " "case no specification for option is found." msgstr "" #: library/tkinter.ttk.rst:1349 msgid "To check what font a Button uses by default::" msgstr "" #: library/tkinter.ttk.rst:1358 msgid "" "Define the widget layout for given *style*. If *layoutspec* is omitted, " "return the layout specification for given style." msgstr "" #: library/tkinter.ttk.rst:1361 msgid "" "*layoutspec*, if specified, is expected to be a list or some other sequence " "type (excluding strings), where each item should be a tuple and the first " "item is the layout name and the second item should have the format described " "in `Layouts`_." msgstr "" #: library/tkinter.ttk.rst:1366 msgid "" "To understand the format, see the following example (it is not intended to " "do anything useful)::" msgstr "" #: library/tkinter.ttk.rst:1393 msgid "" "Create a new element in the current theme, of the given *etype* which is " "expected to be either \"image\", \"from\" or \"vsapi\". The latter is only " "available in Tk 8.6a for Windows XP and Vista and is not described here." msgstr "" #: library/tkinter.ttk.rst:1397 msgid "" "If \"image\" is used, *args* should contain the default image name followed " "by statespec/value pairs (this is the imagespec), and *kw* may have the " "following options:" msgstr "" #: library/tkinter.ttk.rst:1403 msgid "border=padding" msgstr "" #: library/tkinter.ttk.rst:1402 msgid "" "padding is a list of up to four integers, specifying the left, top, right, " "and bottom borders, respectively." msgstr "" #: library/tkinter.ttk.rst:1407 msgid "height=height" msgstr "" #: library/tkinter.ttk.rst:1406 msgid "" "Specifies a minimum height for the element. If less than zero, the base " "image's height is used as a default." msgstr "" #: library/tkinter.ttk.rst:1411 msgid "padding=padding" msgstr "" #: library/tkinter.ttk.rst:1410 msgid "" "Specifies the element's interior padding. Defaults to border's value if not " "specified." msgstr "" #: library/tkinter.ttk.rst:1415 msgid "sticky=spec" msgstr "" #: library/tkinter.ttk.rst:1414 msgid "" "Specifies how the image is placed within the final parcel. spec contains " "zero or more characters \"n\", \"s\", \"w\", or \"e\"." msgstr "" #: library/tkinter.ttk.rst:1419 msgid "width=width" msgstr "" #: library/tkinter.ttk.rst:1418 msgid "" "Specifies a minimum width for the element. If less than zero, the base " "image's width is used as a default." msgstr "" #: library/tkinter.ttk.rst:1421 msgid "" "If \"from\" is used as the value of *etype*, :meth:`element_create` will " "clone an existing element. *args* is expected to contain a themename, from " "which the element will be cloned, and optionally an element to clone from. " "If this element to clone from is not specified, an empty element will be " "used. *kw* is discarded." msgstr "" #: library/tkinter.ttk.rst:1431 msgid "Returns the list of elements defined in the current theme." msgstr "" #: library/tkinter.ttk.rst:1436 msgid "Returns the list of *elementname*'s options." msgstr "" #: library/tkinter.ttk.rst:1441 msgid "Create a new theme." msgstr "" #: library/tkinter.ttk.rst:1443 msgid "" "It is an error if *themename* already exists. If *parent* is specified, the " "new theme will inherit styles, elements and layouts from the parent theme. " "If *settings* are present they are expected to have the same syntax used " "for :meth:`theme_settings`." msgstr "" #: library/tkinter.ttk.rst:1451 msgid "" "Temporarily sets the current theme to *themename*, apply specified " "*settings* and then restore the previous theme." msgstr "" #: library/tkinter.ttk.rst:1454 msgid "" "Each key in *settings* is a style and each value may contain the keys " "'configure', 'map', 'layout' and 'element create' and they are expected to " "have the same format as specified by the methods :meth:`Style.configure`, :" "meth:`Style.map`, :meth:`Style.layout` and :meth:`Style.element_create` " "respectively." msgstr "" #: library/tkinter.ttk.rst:1460 msgid "As an example, let's change the Combobox for the default theme a bit::" msgstr "" #: library/tkinter.ttk.rst:1488 msgid "Returns a list of all known themes." msgstr "" #: library/tkinter.ttk.rst:1493 msgid "" "If *themename* is not given, returns the theme in use. Otherwise, sets the " "current theme to *themename*, refreshes all widgets and emits a " "<> event." msgstr "" #: library/tkinter.ttk.rst:1499 msgid "Layouts" msgstr "" #: library/tkinter.ttk.rst:1501 msgid "" "A layout can be just ``None``, if it takes no options, or a dict of options " "specifying how to arrange the element. The layout mechanism uses a " "simplified version of the pack geometry manager: given an initial cavity, " "each element is allocated a parcel. Valid options/values are:" msgstr "" #: library/tkinter.ttk.rst:1510 msgid "side: whichside" msgstr "" #: library/tkinter.ttk.rst:1508 msgid "" "Specifies which side of the cavity to place the element; one of top, right, " "bottom or left. If omitted, the element occupies the entire cavity." msgstr "" #: library/tkinter.ttk.rst:1513 msgid "sticky: nswe" msgstr "" #: library/tkinter.ttk.rst:1513 msgid "Specifies where the element is placed inside its allocated parcel." msgstr "" #: library/tkinter.ttk.rst:1518 msgid "unit: 0 or 1" msgstr "" #: library/tkinter.ttk.rst:1516 msgid "" "If set to 1, causes the element and all of its descendants to be treated as " "a single element for the purposes of :meth:`Widget.identify` et al. It's " "used for things like scrollbar thumbs with grips." msgstr "" #: library/tkinter.ttk.rst:1523 msgid "children: [sublayout... ]" msgstr "" #: library/tkinter.ttk.rst:1521 msgid "" "Specifies a list of elements to place inside the element. Each element is a " "tuple (or other sequence type) where the first item is the layout name, and " "the other is a `Layout`_." msgstr ""