jdxi_editor.ui.windows.patch.name_editor
This module defines the PatchNameEditor class, a PySide6-based dialog for editing the name of a JD-Xi patch.
Features: - Provides a simple UI for renaming patches with a maximum of 12 characters. - Ensures patch names are converted to uppercase, matching JD-Xi conventions. - Includes “Save” and “Cancel” buttons for user confirmation. - Applies a custom dark theme for styling.
Classes: - PatchNameEditor: A QDialog that allows users to modify a patch name.
Dependencies: - PySide6 - jdxi_editor.ui.style.Style
Example Usage
>>>dialog = PatchNameEditor(current_name=”Piano”) …if dialog.exec_(): # If the user clicks Save … sys_ex_bytes = dialog.get_sysex_bytes() … print(“SysEx Bytes:”, sys_ex_bytes)
Classes
Module Contents
- class jdxi_editor.ui.windows.patch.name_editor.PatchNameEditor(current_name='', parent=None)[source]
Bases:
PySide6.QtWidgets.QDialog