Helper functions for PySide2 UI Widgets
Project description
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.DARK_BLUE, Colors.DARK_RED, Colors.DARK_GREEN, Colors.DARK_YELLOW, ...
Colors.BG_BLUE, Colors.BG_RED, Colors.BG_GREEN, Colors.BG_YELLOW, ...
Utils
Wait Cursor decorator
from ps_ui import wait_cursor
@wait_cursor
def long_running_function():
pass
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyside_ui_backpack-1.0.6.tar.gz.
File metadata
- Download URL: pyside_ui_backpack-1.0.6.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
355c1e2ff51e866a7e5f8f816fccced46b0066499863f06b87b6600e6d0726f7
|
|
| MD5 |
5b4da547be14b37beee73c2c5ccfb3fe
|
|
| BLAKE2b-256 |
45cbc71c35ad9abc2ba84e6dfdbc34d87ef1a95516987898d81a627d454be88e
|
File details
Details for the file pyside_ui_backpack-1.0.6-py3-none-any.whl.
File metadata
- Download URL: pyside_ui_backpack-1.0.6-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
074fb4015af0af6f76833ebf0dd42a84e9b44d2fc32c8a253415029f0d7ef12d
|
|
| MD5 |
e0eea9b81ef44cb0dc9ee73987940ee3
|
|
| BLAKE2b-256 |
de25c69ce7fccc2bac628dedd5c03ae80fa2586369b59bddf451c0a705b3e6cb
|