Expose curses.BUTTON5_* in Python 3.10 (#5556)

* Expose curses.BUTTON5_* in Python 3.10

* curses.BUTTON5_* aren't available on macOS
This commit is contained in:
Pavel Karateev
2021-05-30 16:58:31 +03:00
committed by GitHub
parent 2255a6fdc8
commit ee4d9fb106

View File

@@ -89,6 +89,13 @@ BUTTON4_DOUBLE_CLICKED: int
BUTTON4_PRESSED: int
BUTTON4_RELEASED: int
BUTTON4_TRIPLE_CLICKED: int
# Darwin ncurses doesn't provide BUTTON5_* constants
if sys.version_info >= (3, 10) and sys.platform != "darwin":
BUTTON5_PRESSED: int
BUTTON5_RELEASED: int
BUTTON5_CLICKED: int
BUTTON5_DOUBLE_CLICKED: int
BUTTON5_TRIPLE_CLICKED: int
BUTTON_ALT: int
BUTTON_CTRL: int
BUTTON_SHIFT: int