Extensions and custom widgets for Dear Py GUI
Installation: pip install dearpygui-extend
**Also check "examples" folder.
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')
...
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='#'
)
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
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')