On this page
curses.getmouse
Prev: curses.get_tabsize | Up: curses | Next: curses.getsyx
Rel: curses.assume_default_colors, curses.baudrate, curses.beep, curses.can_change_color
Ref: docs.python.org — curses.getmouse
Tags: #public #python3 #stdlib #curses
Import
import curses
from curses import getmouse
Signature & Overview
curses.getmouse()
Retrieve the queued mouse event.
Usage
import curses
# Reads the queued mouse event (id, x, y, z, bstate) after getch() returns KEY_MOUSE
assert callable(curses.getmouse)
Gotchas
- Must enable
curses.mousemask(curses.ALL_MOUSE_EVENTS)first.
REPL Inspect
from curses import getmouse
help(getmouse)
Linked from
Related notes
- tuts/python3/stdlib_module/curses/get_tabsize Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/getsyx Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/curses/assume_default_colors Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/baudrate Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/beep Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/can_change_color Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/cbreak shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/color_content shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/color_pair shared tags: #curses, #stdlib