Skip to main content

A python utility for creating xbar, argos and ardos menus.

Project description

pyxmenu

PyPI PyPI - Downloads

pyxmenu is a Python library for helping you create python plugins for xbar, argos and ardos with ease!

The library wraps all the menu creation logic with classes and objects to let you create a plugin with a few lines of code and without dealing with string formatting complications.

Installation

Use the package manager pip to install pyxmenu.

pip install pyxmenu

Usage

from pyxmenu import Plugin, Item

# Create a new xbar plugin
plugin = Plugin(
    # Set the title of the plugin
    title=Item("My Plugin", font="Menlo", size=20),
    # Add items to the plugin
    items=[
        Item("Hello", color="blue", href="https://github.com/labrador-team/pyxmenu")
    ]
).add_items(
    # Add multiple items to the plugin
    [
        Item("World", color="red", key="shift+k"),
        Item("Foo", color="green", alternative=Item("Bar", color="yellow")),
        # Add item with submenu
        Item("Baz", color="purple", children=[
            Item("Qux"),
            Item("Quux"),
        ]),
    ]
)

print(plugin)

Contributing

Please open an issue first to discuss what you would like to change. We welcome any and all criticism, feedback, and suggestions even if we may not agree.

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

pyxmenu-0.0.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

pyxmenu-0.0.1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file pyxmenu-0.0.1.tar.gz.

File metadata

  • Download URL: pyxmenu-0.0.1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for pyxmenu-0.0.1.tar.gz
Algorithm Hash digest
SHA256 94f9b832f4fbfbc7f517790195706f45d6f65089e884ccbb9682f37110c7035a
MD5 ac7aab1a248682645a8ce38f4b129f21
BLAKE2b-256 28e2e63366ee6c9085c89a1469739b21713d5f41a2ec9f042529dca833613499

See more details on using hashes here.

File details

Details for the file pyxmenu-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyxmenu-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for pyxmenu-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5fa9f2688fae76cef31f201d9a8f462316952315484668d9a1181af2136da285
MD5 7ab9cb80f238cc4d8f483d4f8ca2bbc1
BLAKE2b-256 6baa9f556c85d8421e926c6a197099b77e9ba6dfb76b71fef08a942ae18b108b

See more details on using hashes here.

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