You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

textual-colorpicker

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textual-colorpicker

A color picker widget for Textual

0.1.0
pipPyPI
Maintainers
1

textual-colorpicker

A color picker widget for Textual.

screenshot

Installation

Install textual-colorpicker using pip:

pip install textual-colorpicker

Usage

textual-colorpicker provides a ColorPicker widget for use in Textual.

from textual.app import App, ComposeResult

from textual_colorpicker import ColorPicker


class ColorPickerApp(App):
    CSS = """
    Screen {
        align: center middle;
    }
    """

    def compose(self) -> ComposeResult:
        yield ColorPicker()


if __name__ == "__main__":
    app = ColorPickerApp()
    app.run()

Limitations

Textual apps run in the terminal, which work in terms of character cells rather than pixels. This means you obviously can't have the same fine-grained control with the mouse for this color picker as usual.

Contributing

I created this color picker widget as a learning exercise to better understand Textual and it is still a work in progress.

I'd really appreciate any feedback or suggestions, but I'm afraid I probably won't be accepting any PRs at the moment.

License

Licensed under the GNU General Public License v3.0.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts