@@ -3156,14 +3156,17 @@ msgid ""
31563156"(including xterm and most other software terminal emulators). Otherwise it "
31573157"will be drawn with ASCII dashes, vertical bars, and plus signs."
31583158msgstr ""
3159+ "绘制一个矩形。 第一个参数必须为窗口对象;其余参数均为相对于该窗口的坐标值。 第二和第三个参数为要绘制的矩形的左上角的 y 和 x "
3160+ "坐标值;第四和第五个参数为其右下角的 y 和 x 坐标值。 将会使用 VT100/IBM PC 形式的字符在可用的终端上(包括 xterm "
3161+ "和大多数其他软件终端模拟器)绘制矩形。 在其他情况下则将使用 ASCII 横杠、竖线和加号绘制。"
31593162
31603163#: ../../library/curses.rst:1755
31613164msgid "Textbox objects"
31623165msgstr "文本框对象"
31633166
31643167#: ../../library/curses.rst:1757
31653168msgid "You can instantiate a :class:`Textbox` object as follows:"
3166- msgstr ""
3169+ msgstr "你可以通过如下方式实例化一个 :class:`Textbox`: "
31673170
31683171#: ../../library/curses.rst:1762
31693172msgid ""
@@ -3173,10 +3176,13 @@ msgid ""
31733176"left hand corner of the containing window, with coordinates ``(0, 0)``. The "
31743177"instance's :attr:`stripspaces` flag is initially on."
31753178msgstr ""
3179+ "返回一个文本框控件对象。 *win* 参数必须是一个 curses :ref:`窗口 <curses-window-objects>` "
3180+ "对象,文本框将被包含在其中。 文本框的编辑光标在初始时位于包含窗口的左上角,坐标值为 ``(0, 0)``。 实例的 "
3181+ ":attr:`stripspaces` 旗标初始时为启用。"
31763182
31773183#: ../../library/curses.rst:1768
31783184msgid ":class:`Textbox` objects have the following methods:"
3179- msgstr ""
3185+ msgstr ":class:`Textbox` 对象具有以下方法: "
31803186
31813187#: ../../library/curses.rst:1773
31823188msgid ""
@@ -3188,6 +3194,9 @@ msgid ""
31883194"whether blanks in the window are included is affected by the "
31893195":attr:`stripspaces` attribute."
31903196msgstr ""
3197+ "这是你通常将使用的入口点。 它接受编辑按键直到键入了一个终止按键。 如果提供了 *validator*,它必须是一个函数。 "
3198+ "它将在每次按键时被调用并传入相应的按键作作为形参;命令发送将在结果上执行。 此方法会以字符串形式返回窗口内容;是否包括窗口中的空白将受到 "
3199+ ":attr:`stripspaces` 属性的影响。"
31913200
31923201#: ../../library/curses.rst:1784
31933202msgid ""
@@ -3233,7 +3242,7 @@ msgstr ":kbd:`Control-E`"
32333242
32343243#: ../../library/curses.rst:1797
32353244msgid "Go to right edge (stripspaces off) or end of line (stripspaces on)."
3236- msgstr ""
3245+ msgstr "前往右边缘(stripspaces 关闭时)或者行尾(stripspaces 启用时)。 "
32373246
32383247#: ../../library/curses.rst:1800 ../../library/curses.rst:1830
32393248msgid ":kbd:`Control-F`"
@@ -3341,13 +3350,13 @@ msgstr ":kbd:`Control-h`"
33413350msgid ""
33423351"All other keystrokes are treated as a command to insert the given character "
33433352"and move right (with line wrapping)."
3344- msgstr ""
3353+ msgstr "所有其他按键将被视为插入给定字符并右移的命令(带有自动折行)。 "
33453354
33463355#: ../../library/curses.rst:1845
33473356msgid ""
33483357"Return the window contents as a string; whether blanks in the window are "
33493358"included is affected by the :attr:`stripspaces` member."
3350- msgstr ""
3359+ msgstr "以字符串形式返回窗口内容;是否包括窗口中的空白将受到 :attr:`stripspaces` 成员的影响。 "
33513360
33523361#: ../../library/curses.rst:1851
33533362msgid ""
0 commit comments