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

Skip to content

Commit 74d1f7a

Browse files
[po] auto sync
1 parent 2340b16 commit 74d1f7a

1 file changed

Lines changed: 19 additions & 7 deletions

File tree

library/tkinter.po

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

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

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

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

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

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

484489
#: ../../library/tkinter.rst:264
485490
msgid "*classCommand*"
486-
msgstr ""
491+
msgstr "*classCommand*"
487492

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

492497
#: ../../library/tkinter.rst:273
493498
msgid "*newPathname*"
494-
msgstr ""
499+
msgstr "*newPathname*"
495500

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

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

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

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

535547
#: ../../library/tkinter.rst:299
536548
msgid ""

0 commit comments

Comments
 (0)