A spacemacs, space menu, inspired gtk library
Project description
SpaceMenu
Description
SpaceMenu is a python module inspired by the spacemacs "space menu". Designed to be used as a laucher for i3wm
Dependencies
gtk-3.0
Installation
pip install spacemenu
Usage
Window
The class Window represents the menu window itself
from spacemenu import Window
window = Window(root, options)
Parameters
root -> A dictionary with the desired display information in the following schema:
{
"label": 'title of the window',
"branches": [
{
"label": "label for the first branch",
"branches": [],
"leaves": []
}
],
"leaves": [
{ "label": "label for leaf 1", "command": "shell command to be executed""}
]
}
so, a branch can contain other branches or leaves, and each leaf executes a command.
options -> Options can either be a dictonary or an Options object
{
"margin": 10,
"column_spacing": 1,
"row_spacing": 1,
"max_columns": 5,
"row_height": 35
}
More options will be added
Methods
draw() -> draw the window
Options
The class Options represents the options allowed to customize the display of the menu
Properties
Methods
TODO
License
GPL-3.0-or-later
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
spacemenu-0.1a1.tar.gz
(4.9 kB
view hashes)
Built Distribution
spacemenu-0.1a1-py3-none-any.whl
(19.1 kB
view hashes)
Close
Hashes for spacemenu-0.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a04310ba55cf95219a27abfdeff986b8582766fecda53debdce6b057f0540daf |
|
MD5 | b2da1993e5cd23fd0e82987cc318d2f0 |
|
BLAKE2b-256 | b3c51dc24e0d57f4ec777e360d0a91a7aafcfc81b4f4c6ddeda34e684a884747 |