@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.15\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-08-27 23 :26+0000\n "
14+ "POT-Creation-Date : 2026-09-05 16 :26+0000\n "
1515"PO-Revision-Date : 2025-09-16 00:00+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -398,9 +398,10 @@ msgstr ""
398398msgid ""
399399"The :meth:`~curses.window.addstr` method takes a Python string or bytestring "
400400"as the value to be displayed. The contents of bytestrings are sent to the "
401- "terminal as-is. Strings are encoded to bytes using the value of the "
402- "window's :attr:`~window.encoding` attribute; this defaults to the default "
403- "system encoding as returned by :func:`locale.getencoding`."
401+ "terminal as-is. On a build without wide-character support strings are "
402+ "encoded using the value of the window's :attr:`~window.encoding` attribute; "
403+ "this defaults to the default system encoding as returned by :func:`locale."
404+ "getencoding`."
404405msgstr ""
405406
406407msgid ""
@@ -409,10 +410,10 @@ msgid ""
409410msgstr ""
410411
411412msgid ""
412- "Constants are provided for extension characters; these constants are "
413- "integers greater than 255. For example, :const:`ACS_PLMINUS` is a +/- "
414- "symbol, and :const: `ACS_ULCORNER` is the upper left corner of a box (handy "
415- "for drawing borders). You can also use the appropriate Unicode character."
413+ "Constants are provided for the characters of the terminal's alternate "
414+ "character set. For example, :const:`ACS_PLMINUS` is a +/- symbol, and :const: "
415+ "`ACS_ULCORNER` is the upper left corner of a box (handy for drawing "
416+ "borders). You can also use the appropriate Unicode character."
416417msgstr ""
417418
418419msgid ""
@@ -427,11 +428,10 @@ msgstr ""
427428
428429msgid ""
429430"If your application doesn't need a blinking cursor at all, you can call "
430- "``curs_set(False)`` to make it invisible. For compatibility with older "
431- "curses versions, there's a ``leaveok(bool)`` function that's a synonym for :"
432- "func:`~curses.curs_set`. When *bool* is true, the curses library will "
433- "attempt to suppress the flashing cursor, and you won't need to worry about "
434- "leaving it in odd locations."
431+ "``curs_set(False)`` to make it invisible. The window method :meth:`~curses."
432+ "window.leaveok` does something different: when its argument is true, curses "
433+ "leaves the cursor wherever the last update put it, instead of moving it back "
434+ "to the window's cursor position."
435435msgstr ""
436436
437437msgid "Attributes and Color"
@@ -589,49 +589,54 @@ msgid ""
589589"pypi:`Urwid` have more extensive collections of widgets.)"
590590msgstr ""
591591
592- msgid "There are two methods for getting input from a window:"
592+ msgid "There are three methods for getting input from a window:"
593593msgstr ""
594594
595595msgid ""
596- ":meth:`~curses.window.getch ` refreshes the screen and then waits for the "
596+ ":meth:`~curses.window.get_wch ` refreshes the screen and then waits for the "
597597"user to hit a key, displaying the key if :func:`~curses.echo` has been "
598598"called earlier. You can optionally specify a coordinate to which the cursor "
599599"should be moved before pausing."
600600msgstr ""
601601
602602msgid ""
603- ":meth:`~curses.window.getkey` does the same thing but converts the integer "
604- "to a string. Individual characters are returned as 1-character strings, and "
605- "special keys such as function keys return longer strings containing a key "
606- "name such as ``KEY_UP`` or ``^G``."
603+ ":meth:`~curses.window.getch` does the same thing but returns the code of the "
604+ "key instead of a character. With ncurses this is a single byte of the key's "
605+ "encoding in the current locale, so a character encoded with several bytes "
606+ "takes several calls, one byte per call."
607+ msgstr ""
608+
609+ msgid ""
610+ ":meth:`~curses.window.getkey` does the same as :meth:`!getch` but returns a "
611+ "string: an ordinary key as a 1-character string, and a special key as its "
612+ "name, such as ``KEY_UP``."
607613msgstr ""
608614
609615msgid ""
610616"It's possible to not wait for the user using the :meth:`~curses.window."
611- "nodelay` window method. After ``nodelay(True)``, :meth:`!getch` and :meth:`! "
612- "getkey` for the window become non-blocking. To signal that no input is "
613- "ready, :meth:`!getch` returns ``curses.ERR`` (a value of -1) and :meth:`! "
614- "getkey` raises an exception. There's also a :func:`~curses.halfdelay` "
615- "function, which can be used to (in effect) set a timer on each :meth:`! "
616- "getch`; if no input becomes available within a specified delay (measured in "
617- "tenths of a second), curses raises an exception ."
617+ "nodelay` window method. After ``nodelay(True)``, the reads for the window "
618+ "become non-blocking. To signal that no input is ready, :meth:`!get_wch` and : "
619+ "meth:`!getkey` raise an exception, and :meth:`!getch` returns ``-1``. "
620+ "There's also a :func:`~curses.halfdelay` function, which can be used to (in "
621+ "effect) set a timer on each read; if no input becomes available within a "
622+ "specified delay (measured in tenths of a second), the read fails the same "
623+ "way ."
618624msgstr ""
619625
620626msgid ""
621- "The :meth:`!getch` method returns an integer; if it's between 0 and 255, it "
622- "represents the ASCII code of the key pressed. Values greater than 255 are "
623- "special keys such as Page Up, Home, or the cursor keys. You can compare the "
624- "value returned to constants such as :const:`curses.KEY_PPAGE`, :const:"
625- "`curses.KEY_HOME`, or :const:`curses.KEY_LEFT`. The main loop of your "
626- "program may look something like this::"
627+ "Special keys such as Page Up, Home, or the cursor keys are returned by all "
628+ "three as one of the :ref:`KEY_* constants <curses-key-constants>`, all "
629+ "larger than 255. You can compare the value returned to constants such as :"
630+ "const:`curses.KEY_PPAGE`, :const:`curses.KEY_HOME`, or :const:`curses."
631+ "KEY_LEFT`. The main loop of your program may look something like this::"
627632msgstr ""
628633
629634msgid ""
630635"while True:\n"
631- " c = stdscr.getch ()\n"
632- " if c == ord( 'p') :\n"
636+ " c = stdscr.get_wch ()\n"
637+ " if c == 'p':\n"
633638" PrintDocument()\n"
634- " elif c == ord( 'q') :\n"
639+ " elif c == 'q':\n"
635640" break # Exit the while loop\n"
636641" elif c == curses.KEY_HOME:\n"
637642" x = y = 0"
@@ -647,17 +652,17 @@ msgid ""
647652msgstr ""
648653
649654msgid ""
650- "There's also a method to retrieve an entire string , :meth:`~curses.window."
655+ "There's also a method to retrieve an entire line , :meth:`~curses.window."
651656"getstr`. It isn't used very often, because its functionality is quite "
652- "limited; the only editing keys available are the backspace key and the Enter "
653- "key, which terminates the string. It can optionally be limited to a fixed "
654- "number of characters . ::"
657+ "limited; the only editing keys available are the erase and kill characters, "
658+ "and the Enter key, which terminates the line. It returns a bytes object, and "
659+ "can optionally be limited to a fixed number of bytes . ::"
655660msgstr ""
656661
657662msgid ""
658663"curses.echo() # Enable echoing of characters\n"
659664"\n"
660- "# Get a 15-character string , with the cursor on the top line\n"
665+ "# Get a line of at most 15 bytes , with the cursor on the top line\n"
661666"s = stdscr.getstr(0,0, 15)"
662667msgstr ""
663668
0 commit comments