File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -417,6 +417,10 @@ msgid ""
417417"refreshed and all occurrences of that color-pair are changed to the new "
418418"definition."
419419msgstr ""
420+ "更改某个颜色对的定义。 它接受三个参数:要更改的颜色对编号,前景色编号和背景色编号。 *pair_number* 值必须为 ``1`` 和 "
421+ "``COLOR_PAIRS - 1`` 之间的数字(并且 ``0`` 号颜色对固定为黑底白字而无法更改)。 *fg* 和 *bg* 参数必须为 "
422+ "``0`` 和 ``COLORS - 1`` 之间的数字,或者在调用 :func:`use_default_colors` 之后则为 ``-1``。 "
423+ "如果颜色对之前已被初始化,则屏幕会被刷新使得出现在屏幕上的该颜色会立即按照新定义来更改。"
420424
421425#: ../../library/curses.rst:303
422426msgid ""
@@ -595,6 +599,8 @@ msgid ""
595599"pair. The value of *pair_number* must be between ``0`` and ``COLOR_PAIRS - "
596600"1``."
597601msgstr ""
602+ "返回包含对应于所请求颜色对的元组 ``(fg, bg)``。 *pair_number* 的值必须在 ``0`` 和 ``COLOR_PAIRS - "
603+ "1`` 之间。"
598604
599605#: ../../library/curses.rst:451
600606msgid ""
You can’t perform that action at this time.
0 commit comments