Helper functions for PySide2 UI Widgets
Project description
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
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)
Built Distribution
Close
Hashes for pyside_ui_backpack-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25f4979013d64cfe4e7107a15a04ea1b22ec3119c937eb4328b52e6260261746 |
|
MD5 | 92a4879d71096d6b5dad6697e59a32c1 |
|
BLAKE2b-256 | 1958d6c466abbf68515732bc05bff1a64ae5aa38988061c0679bf2ab9f8c8cb5 |