@@ -551,6 +551,8 @@ msgid ""
551551"greyed out), but does not work if fred is a label (disabling of labels is "
552552"not supported in Tk)."
553553msgstr ""
554+ "如您所料,*someAction* 的可用值取决于部件的类别。如果 fred 为按钮,则 `.fred disable` 有效(fred 会变灰),而当"
555+ " fred 为标签时则无效(Tk 不支持标签的禁用)。"
554556
555557#: ../../library/tkinter.rst:303
556558msgid ""
@@ -559,20 +561,22 @@ msgid ""
559561"``delete`` command, would need arguments to specify what range of text to "
560562"delete."
561563msgstr ""
564+ "*someOptions* 的合法值取决于动作。有些动作不需要参数,比如 ``disable``,其他动作如文本输入框的 ``delete`` "
565+ "命令则需用参数指定要删除的文本范围。"
562566
563567#: ../../library/tkinter.rst:311
564568msgid "Mapping Basic Tk into Tkinter"
565- msgstr ""
569+ msgstr "将简单的 Tk 映射到 Tkinter "
566570
567571#: ../../library/tkinter.rst:313
568572msgid "Class commands in Tk correspond to class constructors in Tkinter. ::"
569- msgstr ""
573+ msgstr "Tk 中的类命令对应于 Tkinter 中的类构造函数: "
570574
571575#: ../../library/tkinter.rst:317
572576msgid ""
573577"The master of an object is implicit in the new name given to it at creation "
574578"time. In Tkinter, masters are specified explicitly. ::"
575- msgstr ""
579+ msgstr "父对象是隐含在创建时给定的新名字中的。在 Tkinter 中,父对象是显式指定的: "
576580
577581#: ../../library/tkinter.rst:322
578582msgid ""
@@ -582,6 +586,8 @@ msgid ""
582586"indices, in dictionary style, for established instances. See section :ref"
583587":`tkinter-setting-options` on setting options. ::"
584588msgstr ""
589+ "Tk 中的配置项是以连字符标签列表的形式给出的,后跟着参数值。在 Tkinter 中,选项指定为实例构造函数中的关键字参数,在配置调用时指定为关键字 "
590+ "args,或在已有实例中指定为实例索引,以字典的形式。参见 :ref:`tkinter-setting-options` 一节的选项设置部分。"
585591
586592#: ../../library/tkinter.rst:332
587593msgid ""
@@ -591,6 +597,8 @@ msgid ""
591597"widget. The actions (methods) that a given widget can perform are listed in"
592598" :file:`tkinter/__init__.py`. ::"
593599msgstr ""
600+ "在 Tk 中, 要在某个部件上执行动作, 要用部件名作为命令, 并后面附上动作名称, 可能还会带有参数(option)。在 Tkinter "
601+ "中,则调用类实例的方法来执行部件的动作。部件能够执行的动作(方法)列在 :file:`tkinter/__init__.py` 中。"
594602
595603#: ../../library/tkinter.rst:340
596604msgid ""
@@ -601,26 +609,29 @@ msgid ""
601609"so inherit all the packing methods. See the :mod:`tkinter.tix` module "
602610"documentation for additional information on the Form geometry manager. ::"
603611msgstr ""
612+ "若要将部件交给打包器(geometry manager),需带上可选参数去调用 pack。在 Tkinter 中,Pack 类拥有全部这些功能,pack"
613+ " 命令的各种形式都以方法的形式实现。 :mod:`tkinter` 中的所有部件都是从 Packer 继承而来的,因此继承了所有打包方法。关于Form "
614+ "geometry manager 的更多信息,请参见 :mod:`tkinter.tix` 模块的文档。"
604615
605616#: ../../library/tkinter.rst:351
606617msgid "How Tk and Tkinter are Related"
607- msgstr ""
618+ msgstr "Tk 和 Tkinter 如何关联 "
608619
609620#: ../../library/tkinter.rst:353
610621msgid "From the top down:"
611- msgstr ""
622+ msgstr "自上而下: "
612623
613624#: ../../library/tkinter.rst:356
614625msgid "Your App Here (Python)"
615- msgstr ""
626+ msgstr "(Python)应用程序位于这里 "
616627
617628#: ../../library/tkinter.rst:356
618629msgid "A Python application makes a :mod:`tkinter` call."
619- msgstr ""
630+ msgstr "Python 应用程序进行了 :mod:`tkinter` 调用。 "
620631
621632#: ../../library/tkinter.rst:363
622633msgid "tkinter (Python Package)"
623- msgstr ""
634+ msgstr "tkinter (Python 包) "
624635
625636#: ../../library/tkinter.rst:359
626637msgid ""
@@ -630,20 +641,22 @@ msgid ""
630641"form that makes them look as if they had come from a Tk script instead of a "
631642"Python script."
632643msgstr ""
644+ "此调用(比如创建一个按钮部件)在 :mod:`tkinter` 包中实现,它是用 Python 编写的。该 Python "
645+ "函数将解析命令和参数,并转换为貌似 Tk 脚本的格式,而不像是 Python 脚本。"
633646
634647#: ../../library/tkinter.rst:367
635648msgid "_tkinter (C)"
636- msgstr ""
649+ msgstr "_tkinter(C 语言) "
637650
638651#: ../../library/tkinter.rst:366
639652msgid ""
640653"These commands and their arguments will be passed to a C function in the "
641654":mod:`_tkinter` - note the underscore - extension module."
642- msgstr ""
655+ msgstr "这些命令及参数将被传给 :mod:`_tkinter` 扩展模块中的 C 函数——注意下划线。 "
643656
644657#: ../../library/tkinter.rst:374
645658msgid "Tk Widgets (C and Tcl)"
646- msgstr ""
659+ msgstr "Tk 部件(C 和 Tcl) "
647660
648661#: ../../library/tkinter.rst:370
649662msgid ""
@@ -653,22 +666,24 @@ msgid ""
653666" widgets, and is executed once at the point where the Python :mod:`tkinter` "
654667"package is imported. (The user never sees this stage)."
655668msgstr ""
669+ "该 C 函数能调用其他的 C 模块,包括构成 Tk 库的 C 函数。Tk 是用 C 和一些 Tcl 实现的。Tk 部件的 Tcl "
670+ "部分用于将某些默认行为绑定到部件上,并在导入 Python :mod:`tkinter` 包时执行一次。(该阶段对用户而言永不可见)。"
656671
657672#: ../../library/tkinter.rst:377
658673msgid "Tk (C)"
659- msgstr ""
674+ msgstr "Tk(C 语言) "
660675
661676#: ../../library/tkinter.rst:377
662677msgid "The Tk part of the Tk Widgets implement the final mapping to ..."
663- msgstr ""
678+ msgstr "Tk 部件的 Tk 语言部分实现了最终的映射 "
664679
665680#: ../../library/tkinter.rst:381
666681msgid "Xlib (C)"
667- msgstr ""
682+ msgstr "Xlib(C 语言) "
668683
669684#: ../../library/tkinter.rst:380
670685msgid "the Xlib library to draw graphics on the screen."
671- msgstr ""
686+ msgstr "Xlib 库在屏幕上绘制图形。 "
672687
673688#: ../../library/tkinter.rst:384
674689msgid "Handy Reference"
0 commit comments