Skip to main content

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.0.0.tar.gz (2.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page