Sleek dmenu alternative written in Python and powered by curses.
Project description
pmenu
Sleek dmenu alternative written in Python and powered by curses.
Usage
The pmenu(options)
function will return the selected option as a str
, or None
if the menu is closed without selecting an option.
from pmenu_lib import pmenu
selected_option = pmenu(["Option1", "Option2", "Option3"])
> Option1
Option2
Option3
(Enter)
print(selected_option)
>> "Option1"
> Option1
Option2
Option3
(Q)
print(selected_option)
>> None
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pmenu_lib-1.1.0.tar.gz
(2.5 kB
view hashes)