Skip to main content

Helper functions for PySide2 UI Widgets

Project description

PyPI Supported Python Versions PyPI version Message

ps-ui-backpack

PySide UI Utilities

Some shared PySide2 UI utilities for Maya/Houdini/Nuke Qt Tools

Installation

pip install pyside-ui-backpack

Usage

Widgets

from ps_ui import widgets, Colors

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

Dialogs

from ps_ui 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 import Colors

Colors.DISABLED 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 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.5.tar.gz (43.1 kB view hashes)

Uploaded Source

Built Distribution

pyside_ui_backpack-0.1.5-py3-none-any.whl (12.7 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