Skip to main content

Helper functions for PySide2 UI Widgets

Project description

PyPI Supported Python Versions PyPI version GitHub version Message

ps-ui-backpack

PySide UI Utilities

Personal PySide2 UI utilities for Maya/Houdini/Nuke Qt Tools

Installation

pip install ps-ui-backpack

Usage

Widgets

from ps_ui_backpack import widgets, Colors

widgets.PushButton(parent, 'qt_name', (120, 21) , Colors.BLUE)

Dialogs

from ps_ui_backpack import dialogs

dialogs.inform_dialog(parent, 'message', 'title')
dialog.inform_dialog_small(parent, 'message', 'title')
dialogs.warning_dialog(parent, 'error_message', 'title')
dialogs.warning_dialog(parent, 'error_message', 'title')

CSS

from ps_ui import style_push_button, Colors

# style a button widget
button = QPushButton(main_window)
style_push_button(main_window, button, Colors.BLUE)

Colors

Colors.py contains a list of colors

from ps_ui_backpack import Colors

Colors.BLUE, Colors.RED, Colors.GREEN, Colors.YELLOW, Colors.ORANGE, Colors.GREY, Colors.WHITE
Colors.DARK_BLUE, Colors.DARK_RED, Colors.DARK_GREEN, Colors.DARK_YELLOW, Colors.DARK_ORANGE, Colors.DARK_GREY, Colors.DARK_WHITE

Push Button

Utils

Wait Cursor decorator

from ps_ui_backpack import wait_cursor

@wait_cursor
def long_running_function():
    pass

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

pyside-ui-backpack-0.1.0.tar.gz (35.6 kB view hashes)

Uploaded Source

Built Distribution

pyside_ui_backpack-0.1.0-py3-none-any.whl (26.3 kB view hashes)

Uploaded Python 3

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