Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8d8d9e0

Browse files
[po] auto sync
1 parent 3e752cf commit 8d8d9e0

1 file changed

Lines changed: 26 additions & 10 deletions

File tree

library/tkinter.po

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -443,21 +443,22 @@ msgstr "注释:"
443443
msgid ""
444444
"These classes are provided for the purposes of organizing certain functions "
445445
"under one namespace. They aren't meant to be instantiated independently."
446-
msgstr ""
446+
msgstr "提供这些类,是为了能在同一个命名空间下将某些功能组织在一起。并不意味着可以独立对其进行实例化。"
447447

448448
#: ../../library/tkinter.rst:242
449449
msgid ""
450450
"The :class:`Tk` class is meant to be instantiated only once in an "
451451
"application. Application programmers need not instantiate one explicitly, "
452452
"the system creates one whenever any of the other classes are instantiated."
453453
msgstr ""
454+
":class:`Tk` 类在同一个应用程序中仅需作一次实例化。应用程序编程人员不需要显式进行实例化,只要有其他任何类被实例化,系统就会创建一个。"
454455

455456
#: ../../library/tkinter.rst:246
456457
msgid ""
457458
"The :class:`Widget` class is not meant to be instantiated, it is meant only "
458459
"for subclassing to make \"real\" widgets (in C++, this is called an "
459460
"'abstract class')."
460-
msgstr ""
461+
msgstr ":class:`Widget` 类不是用来实例化的,它仅用于继承以便生成“真正”的部件( C++ 中称为“抽象类”)。"
461462

462463
#: ../../library/tkinter.rst:250
463464
msgid ""
@@ -466,6 +467,8 @@ msgid ""
466467
"various parts of a Tk command. (See section :ref:`tkinter-basic-mapping` "
467468
"for the :mod:`tkinter` equivalents of what's below.)"
468469
msgstr ""
470+
"若要充分利用这些参考资料,有时需要知道如何阅读 Tk 的短文,以及如何识别 Tk 命令的各个部分。(参见 :ref:`tkinter-basic-"
471+
"mapping` 一节,了解以下内容在 :mod:`tkinter` 中的对应部分)。"
469472

470473
#: ../../library/tkinter.rst:255
471474
msgid ""
@@ -474,22 +477,24 @@ msgid ""
474477
"*options* that help configure it, and the *actions* that make it do useful "
475478
"things."
476479
msgstr ""
480+
"Tk 脚本就是 Tcl 程序。像所有其他的 Tcl 程序一样,Tk 脚本只是由空格分隔的单词列表。一个Tk 部件只是它的 "
481+
"*class*,*options* 用于进行配置,*actions* 让它执行有用的动作。"
477482

478483
#: ../../library/tkinter.rst:259
479484
msgid "To make a widget in Tk, the command is always of the form::"
480-
msgstr ""
485+
msgstr "要在 Tk 中制作一个部件,总是采用如下格式的命令:"
481486

482487
#: ../../library/tkinter.rst:264
483488
msgid "*classCommand*"
484-
msgstr ""
489+
msgstr "*classCommand*"
485490

486491
#: ../../library/tkinter.rst:264
487492
msgid "denotes which kind of widget to make (a button, a label, a menu...)"
488-
msgstr ""
493+
msgstr "表示要制作何种部件(按钮、标签、菜单......)。"
489494

490495
#: ../../library/tkinter.rst:273
491496
msgid "*newPathname*"
492-
msgstr ""
497+
msgstr "*newPathname*"
493498

494499
#: ../../library/tkinter.rst:269
495500
msgid ""
@@ -499,6 +504,8 @@ msgid ""
499504
"and children are delimited by more periods. For example, "
500505
"``.myApp.controlPanel.okButton`` might be the name of a widget."
501506
msgstr ""
507+
"该组件的新名字。Tk 中的所有名字都必须唯一。为了帮助实现这一点,Tk 中的部件都用 *路径* 命名,就像文件系统中的文件一样。顶层的部件,即 "
508+
"*根*,名为 ``.``(句点),而子部件则由更多的句点分隔。比如部件名可能会是 ``.myApp.controlPanel.okButton`` 。"
502509

503510
#: ../../library/tkinter.rst:279
504511
msgid "*options*"
@@ -511,6 +518,8 @@ msgid ""
511518
"by a '-', like Unix shell command flags, and values are put in quotes if "
512519
"they are more than one word."
513520
msgstr ""
521+
"配置部件的外观,有时也能配置行为。这些选项以标志和值的列表形式出现。标志前带一个“-”,就像 Unix shell "
522+
"命令的标志一样,如果值超过一个单词,就用引号括起来。"
514523

515524
#: ../../library/tkinter.rst:281 ../../library/tkinter.rst:542
516525
#: ../../library/tkinter.rst:720
@@ -525,10 +534,13 @@ msgid ""
525534
"someOptions), in C++, you would express this as "
526535
"fred.someAction(someOptions), and in Tk, you say::"
527536
msgstr ""
537+
"一旦创建成功,部件的路径名就成了一条新的命令。这个新的 *部件命令* 是程序员让新部件执行某些 *action* 的句柄。在 C "
538+
"语言中可表示为someAction(fred, someOptions),在 C++ "
539+
"中可表示为fred.someAction(someOptions),而在 Tk 中写作:"
528540

529541
#: ../../library/tkinter.rst:297
530542
msgid "Note that the object name, ``.fred``, starts with a dot."
531-
msgstr ""
543+
msgstr "请注意,对象名 ``.fred`` 是以句点开头的。"
532544

533545
#: ../../library/tkinter.rst:299
534546
msgid ""
@@ -537,6 +549,8 @@ msgid ""
537549
"greyed out), but does not work if fred is a label (disabling of labels is "
538550
"not supported in Tk)."
539551
msgstr ""
552+
"如您所料,*someAction* 的可用值取决于部件的类别。如果 fred 为按钮,则 `.fred disable` 有效(fred 会变灰),而当"
553+
" fred 为标签时则无效(Tk 不支持标签的禁用)。"
540554

541555
#: ../../library/tkinter.rst:303
542556
msgid ""
@@ -545,20 +559,22 @@ msgid ""
545559
"``delete`` command, would need arguments to specify what range of text to "
546560
"delete."
547561
msgstr ""
562+
"*someOptions* 的合法值取决于动作。有些动作不需要参数,比如 ``disable``,其他动作如文本输入框的 ``delete`` "
563+
"命令则需用参数指定要删除的文本范围。"
548564

549565
#: ../../library/tkinter.rst:311
550566
msgid "Mapping Basic Tk into Tkinter"
551-
msgstr ""
567+
msgstr "将简单的 Tk 映射到 Tkinter"
552568

553569
#: ../../library/tkinter.rst:313
554570
msgid "Class commands in Tk correspond to class constructors in Tkinter. ::"
555-
msgstr ""
571+
msgstr "Tk 中的类命令对应于 Tkinter 中的类构造函数:"
556572

557573
#: ../../library/tkinter.rst:317
558574
msgid ""
559575
"The master of an object is implicit in the new name given to it at creation "
560576
"time. In Tkinter, masters are specified explicitly. ::"
561-
msgstr ""
577+
msgstr "父对象是隐含在创建时给定的新名字中的。在 Tkinter 中,父对象是显式指定的:"
562578

563579
#: ../../library/tkinter.rst:322
564580
msgid ""

0 commit comments

Comments
 (0)