Extensions and custom widgets for Dear Py GUI
Project description
DearPyGui_Extend
Extensions and custom widgets for Dear Py GUI
Installation: pip install dearpygui-extend
**Also check "examples" folder.
Movable Groups
Add Drag'n'drop ability to groups ("swap" or "replace" behaviors):
Usage:
import dearpygui.dearpygui as dpg
import dearpygui_extend as dpge
with dpge.movable_group():
dpg.add_text('Some text')
...
File browser
A custom filebrowser with extended functionality.
Features:
- Supports file sequence entries:
image.001.jpg, image.002.jpg, image.003.jpg --> 'image.###.jpg (001-003)'
- Multi-selection (pick single or multiple files/sequences)
- Breadcrumb path with navigation icons & folder quick access
- Filetype filters
- Sorting (smart sorting for collapsed sequences)
- Draggable items (ability to expand file sequences on a drop callback)
[!NOTE] Requires Fileseq package:
pip install fileseq
Usage:
import dearpygui.dearpygui as dpg
import dearpygui_extend as dpge
dpge.add_file_browser(
initial_path='~/Downloads/images',
collapse_sequences=True,
sequence_padding='#'
)
Layout
A simple, responsive, text-based layouting system that abstracts table creation process away from the user.
Example:
LAYOUT example center center
COL left_menu 0.2
COL
ROW 0.3
COL left_content
COL right_content
ROW
COL bottom_content
COL right_menu 0.2
will produce this layout:
Usage:
import dearpygui.dearpygui as dpg
import dearpygui_extend as dpge
# use "tab" for identation
layout='''
LAYOUT example center center
COL left_menu 0.2
COL
ROW 0.3
COL left_content
COL right_content
ROW
COL bottom_content
COL right_menu 0.2
'''
# create layout
with dpg.window():
dpge.add_layout(layout, border=True)
# accessing layout panes
with dpg.group(parent='left_content'):
#add widgets
dpg.add_text('User login:')
dpg.add_input_text(label='username')
dpg.add_input_text(label='password')
dpg.add_button(label='Login')
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
dearpygui_extend-0.1.4.tar.gz
(22.6 kB
view details)
File details
Details for the file dearpygui_extend-0.1.4.tar.gz
.
File metadata
- Download URL: dearpygui_extend-0.1.4.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 884baa7c39901c4bf98be4d1ed3fc780ecbef7e11f7748af9efe0a098637c2ec |
|
MD5 | 7c51f3c72f09c7841e4d47377ed2c171 |
|
BLAKE2b-256 | 41e85cc05a7061678c040152b274caf4e309be0f4a29bb922d606a2707539cb5 |