@@ -2039,7 +2039,7 @@ msgstr "例如,要将默认按钮改为扁平样式,并带有留白和各种
20392039
20402040#: ../../library/tkinter.ttk.rst:1313
20412041msgid "Query or sets dynamic values of the specified option(s) in *style*."
2042- msgstr ""
2042+ msgstr "查询或设置 *style* 的指定属性的动态值。 "
20432043
20442044#: ../../library/tkinter.ttk.rst:1315
20452045msgid ""
@@ -2048,10 +2048,13 @@ msgid ""
20482048"preference. A statespec is a compound of one or more states and then a "
20492049"value."
20502050msgstr ""
2051+ "*kw* "
2052+ "的每个键都是一个属性,每个值通常应为列表或元组,其中包含以元组、列表或其他形式组合而成的状态标识(statespec)。状态标识是由一个或多个状态组合,加上一个值组成。"
2053+ " "
20512054
20522055#: ../../library/tkinter.ttk.rst:1320
20532056msgid "An example may make it more understandable::"
2054- msgstr ""
2057+ msgstr "举个例子能更清晰些: "
20552058
20562059#: ../../library/tkinter.ttk.rst:1338
20572060msgid ""
@@ -2060,27 +2063,29 @@ msgid ""
20602063"'red')]`` in the foreground option, for example, the result would be a blue "
20612064"foreground when the widget were in active or pressed states."
20622065msgstr ""
2066+ "请注意,要点是属性的(状态,值)序列的顺序,如果前景色属性的顺序改为 ``[('active', 'blue'), ('pressed', "
2067+ "'red')]`` ,则控件处于激活或按下状态时的前景色将为蓝色。 "
20632068
20642069#: ../../library/tkinter.ttk.rst:1346
20652070msgid "Returns the value specified for *option* in *style*."
2066- msgstr ""
2071+ msgstr "返回 *style* 中的 *option* 属性值。 "
20672072
20682073#: ../../library/tkinter.ttk.rst:1348
20692074msgid ""
20702075"If *state* is specified, it is expected to be a sequence of one or more "
20712076"states. If the *default* argument is set, it is used as a fallback value in "
20722077"case no specification for option is found."
2073- msgstr ""
2078+ msgstr "如果给出了 *state* ,则应是一个或多个状态组成的序列。如果设置了 *default* 参数,则在属性值缺失时会用作后备值。 "
20742079
20752080#: ../../library/tkinter.ttk.rst:1352
20762081msgid "To check what font a Button uses by default::"
2077- msgstr ""
2082+ msgstr "若要检测按钮的默认字体,可以: "
20782083
20792084#: ../../library/tkinter.ttk.rst:1361
20802085msgid ""
20812086"Define the widget layout for given *style*. If *layoutspec* is omitted, "
20822087"return the layout specification for given style."
2083- msgstr ""
2088+ msgstr "按照 *style* 定义控件布局。如果省略了 *layoutspec*,则返回该样式的布局属性。 "
20842089
20852090#: ../../library/tkinter.ttk.rst:1364
20862091msgid ""
@@ -2089,46 +2094,51 @@ msgid ""
20892094"item is the layout name and the second item should have the format described"
20902095" in `Layouts`_."
20912096msgstr ""
2097+ "若给出了 *layoutspec*,则应为一个列表或其他的序列类型(不包括字符串),其中的数据项应为元组类型,第一项是布局名称,第二项的格式应符合 "
2098+ "`Layouts`_ 的描述。 "
20922099
20932100#: ../../library/tkinter.ttk.rst:1369
20942101msgid ""
20952102"To understand the format, see the following example (it is not intended to "
20962103"do anything useful)::"
2097- msgstr ""
2104+ msgstr "以下示例有助于理解这种格式(这里并没有实际意义): "
20982105
20992106#: ../../library/tkinter.ttk.rst:1396
21002107msgid ""
21012108"Create a new element in the current theme, of the given *etype* which is "
21022109"expected to be either \" image\" , \" from\" or \" vsapi\" . The latter is only "
21032110"available in Tk 8.6a for Windows XP and Vista and is not described here."
21042111msgstr ""
2112+ "在当前主题中创建一个新元素 *etype* ,应为 image、from 或 vsapi。后者仅在 Windows XP 和 Vista 版的 Tk "
2113+ "8.6a 中可用,此处不再赘述。 "
21052114
21062115#: ../../library/tkinter.ttk.rst:1400
21072116msgid ""
21082117"If \" image\" is used, *args* should contain the default image name followed "
21092118"by statespec/value pairs (this is the imagespec), and *kw* may have the "
21102119"following options:"
21112120msgstr ""
2121+ "如果用了 image,则 *args* 应包含默认的图片名,后面跟着 状态标识/值(这里是 imagespec),*kw* 可带有以下属性: "
21122122
21132123#: ../../library/tkinter.ttk.rst:1406
21142124msgid "border=padding"
2115- msgstr ""
2125+ msgstr "border=padding "
21162126
21172127#: ../../library/tkinter.ttk.rst:1405
21182128msgid ""
21192129"padding is a list of up to four integers, specifying the left, top, right, "
21202130"and bottom borders, respectively."
2121- msgstr ""
2131+ msgstr "padding 是由不超过四个整数构成的列表,分别定义了左、顶、右、底的边界。 "
21222132
21232133#: ../../library/tkinter.ttk.rst:1410
21242134msgid "height=height"
2125- msgstr ""
2135+ msgstr "height=height "
21262136
21272137#: ../../library/tkinter.ttk.rst:1409
21282138msgid ""
21292139"Specifies a minimum height for the element. If less than zero, the base "
21302140"image's height is used as a default."
2131- msgstr ""
2141+ msgstr "定义了元素的最小高度。如果小于零,则默认采用图片本身的高度。 "
21322142
21332143#: ../../library/tkinter.ttk.rst:1414
21342144msgid "padding=padding"
0 commit comments