A command palette widget for Qt applications
Project description
qt-command-palette
A command palette widget for Qt applications. This module provides a Pythonic way to register command actions to any Qt widgets.
Installation
pip install qt-command-palette
Usage
-
Register functions using
register
function.from qt_command_palette import get_palette # create command palette instance (with optional app name as an argument) palette = get_palette("myapp") # prepare a command group group = palette("Command group 1") # This function will be shown as "Command group 1: run_something" @group.register def run_something(): ... # This function will be shown as "Command group 1: Run some function" @group.register(desc="Run some function") def run_something(): ...
-
Install command palette into Qt widget.
# instantiate your own widget qwidget = MyWidget() # install command palette, with optional shortcut palette.install(qwidget, "Ctrl+Shift+P") qwidget.show()
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
qt_command_palette-0.0.5.tar.gz
(164.1 kB
view hashes)
Built Distribution
Close
Hashes for qt_command_palette-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b2564592e43f3c6351651a5cf72a01cb6162aead1f6dcf4dd058b51f3237f91 |
|
MD5 | dcb7d9d61abf2bdaaf2963a681cbd7a7 |
|
BLAKE2b-256 | ee1a9ee0fc18c71a118106cfd36cb3c47f67b3fd9d247a5537acc16ed6398753 |