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

Uploaded Source

File details

Details for the file pmenu_lib-0.9.0.tar.gz.

File metadata

  • Download URL: pmenu_lib-0.9.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pmenu_lib-0.9.0.tar.gz
Algorithm Hash digest
SHA256 6f3a08dadd97035b308cf469ed7b529d1d10ae4dda970b94e4593392c75c97e6
MD5 a80b80ba2414f1f5755428cdbe9e158f
BLAKE2b-256 f8c9524b3b4b65642626d1e0f298d0a2730c28353e3891ace6add1b0705c24ba

See more details on using hashes here.

Supported by

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