Skip to content

CLI reference

One-line description of the top-level ezqt-widgets command.

The CLI is registered as the ezqt-widgets entry point in pyproject.toml:

[project.scripts]
ezqt-widgets = "ezqt_widgets.cli.main:cli"

๐Ÿ’ป Usage

ezqt-widgets [OPTIONS] COMMAND [ARGS]...

โš™๏ธ Global options

Option Short Description
--version -v Show the version and exit
--help -h Show help and exit

๐Ÿ“‹ Commands

Command Description
demo Run and list interactive widget demos
docs Open the online documentation in the default browser
info Display package information
version Display version information

๐Ÿ–ฅ๏ธ ezqt-widgets demo โ€” Widget demos

The demo command group exposes two subcommands: run and list.

demo run โ€” Run widget examples

ezqt-widgets demo run [OPTIONS]
Option Short Description
--all -a Run all examples with the GUI launcher
--buttons -b Run button examples (DateButton, IconButton, LoaderButton)
--inputs -i Run input examples (AutoCompleteInput, PasswordInput, SearchInput, TabReplaceTextEdit)
--labels -l Run label examples (ClickableTagLabel, FramedLabel, HoverLabel, IndicatorLabel)
--misc -m Run misc examples (CircularTimer, DraggableList, OptionSelector, ToggleSwitch)
--no-gui โ€” Run examples sequentially without the GUI launcher
--verbose -v Verbose output

At least one category flag must be provided. Running ezqt-widgets demo run with no options prints usage information.

demo list โ€” List available examples

ezqt-widgets demo list

Displays all available example scripts and their status.

Sample output:

๐Ÿ“‹ Available examples:
========================================
โœ… _button
โœ… _input
โœ… _label
โœ… _misc
โœ… run_all_examples

Total: 5 examples found

๐Ÿ“– ezqt-widgets docs โ€” Open documentation

Opens the online documentation website in the default browser.

ezqt-widgets docs

If a browser cannot be opened (e.g. in a headless environment), the documentation URL is printed to stdout instead.


โ„น๏ธ ezqt-widgets info โ€” Package information

Displays information about the installed package.

ezqt-widgets info

Sample output:

Package Information
==================================================

Version: 2.7.0
Author:  Neuraaak
URL:     https://github.com/neuraaak/ezqt-widgets
Path:    /path/to/site-packages/ezqt_widgets
Examples: 5 found

๐Ÿ”ข ezqt-widgets version โ€” Version information

ezqt-widgets version [OPTIONS]
Option Short Description
--full -f Display full version information

๐Ÿงช Examples

# Show installed version
ezqt-widgets --version

# Run all demos at once
ezqt-widgets demo run --all

# Run only button demos with verbose output
ezqt-widgets demo run --buttons --verbose

# Run multiple categories
ezqt-widgets demo run --inputs --misc

# List available demos
ezqt-widgets demo list

# Open online docs
ezqt-widgets docs

# Show package info
ezqt-widgets info

# Show full version details
ezqt-widgets version --full

Troubleshooting

Issue Solution
ezqt-widgets: command not found Install with pip install ezqt-widgets or pip install -e ".[dev]"
Examples not found Ensure the examples/ directory exists at the repository root
ImportError: PySide6 Install PySide6: pip install "PySide6>=6.7.3"