File tree 3 files changed +3
-14
lines changed
3 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 12
12
13
13
description = __doc__ ,
14
14
long_description = open ("README.md" , encoding = "utf-8" ).read (),
15
+ long_description_content_type = "text/markdown" ,
15
16
install_requires = ["windows-curses; platform_system=='Windows'" ],
16
17
extras_require = {"doc" : ["sphinx" , "sphinx-rtd-theme" ]},
17
18
include_package_data = True ,
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ def __init__(
108
108
self .downtime_chars_delay = downtime_chars_delay
109
109
110
110
#: Keystroke acquisition curses method for BaseTextBox.get_input.
111
+ #: See https://docs.python.org/3/library/curses.html?#curses.window.getch
111
112
self .key_detection : Literal ["getkey" ,
112
113
"getch" ,
113
114
"get_wch" ] = "getkey"
@@ -175,25 +176,13 @@ def get_input(self, win: CursesWindow):
175
176
``self.confirm_keys`` is not detected.
176
177
177
178
The method of key detection depends on the variable
178
- ``self.key_detection_mode``. ``"key"`` will acquire the key as
179
- a character and ``"code"`` as a key code. This is default to
180
- ``"key"``.
179
+ ``self.key_detection``.
181
180
182
181
:param win: ``curses`` window object on which the method will
183
182
have effect.
184
183
185
184
:raises PanicError: If a key contained in ``self.panic_keys`` is
186
185
pressed.
187
-
188
- .. NOTE::
189
- - This method uses ``window.getch`` method from ``curses``
190
- module. Please refer to `curses documentation
191
- <https://docs.python.org/3/library/curses.html?#curses.window.getch>`_
192
- for more informations.
193
- - This method uses ``window.getkey`` method from ``curses``
194
- module. Please refer to `curses documentation
195
- <https://docs.python.org/3/library/curses.html?#curses.window.getkey>`_
196
- for more informations.
197
186
"""
198
187
curses .flushinp ()
199
188
Original file line number Diff line number Diff line change @@ -180,7 +180,6 @@ def _one_by_one(self,
180
180
attr = (colors_pair , * text_attr )
181
181
182
182
with TextAttr (win , * attr ):
183
- write_method = getattr (self , write_method .__name__ )
184
183
write_method (win ,
185
184
self .text_pos_x + offsetting_x ,
186
185
self .text_pos_y + y ,
You can’t perform that action at this time.
0 commit comments