jdxi_editor.ui.windows.jdxi.panel

The JD-Xi faceplate.

instrument_panel.ui is the 1000 x 230 panel, with one empty host for each group of controls at its place on the picture. This module fills the hosts with the display, part buttons, sliders, and step buttons, and keeps each host on its place in the picture as the panel is stretched.

Attributes

_UI

HOSTS

Classes

InstrumentFaceplate

The panel: the instrument picture, with the hosts laid over it.

Functions

load_instrument_form() → PySide6.QtWidgets.QWidget

The empty faceplate from Qt Designer.

_host(form, name) → PySide6.QtWidgets.QWidget

build_faceplate(window) → InstrumentFaceplate

Build the faceplate and attach its controls to window.

Module Contents

jdxi_editor.ui.windows.jdxi.panel._UI[source]
jdxi_editor.ui.windows.jdxi.panel.HOSTS = ('title_host', 'display_host', 'octave_arp_host', 'parts_host', 'program_host', 'tone_host',...[source]
jdxi_editor.ui.windows.jdxi.panel.load_instrument_form() → PySide6.QtWidgets.QWidget[source]

The empty faceplate from Qt Designer.

jdxi_editor.ui.windows.jdxi.panel._host(form: PySide6.QtWidgets.QWidget, name: str) → PySide6.QtWidgets.QWidget[source]
class jdxi_editor.ui.windows.jdxi.panel.InstrumentFaceplate(form: PySide6.QtWidgets.QWidget)[source]

Bases: PySide6.QtWidgets.QWidget

The panel: the instrument picture, with the hosts laid over it.

form[source]
image_label[source]
_init_styling()[source]
_init_hosts()[source]
_init_sequencer()[source]
create_image_label()[source]

create image label

scaled(rect: PySide6.QtCore.QRect) → PySide6.QtCore.QRect[source]

rect on the 1000 x 230 panel, where it falls on this one.

Parameters:

rect – QRect in panel design coordinates

Returns:

QRect in this widget’s coordinates

apply_width(width: int) → int[source]

Set the panel’s depth for an instrument width px wide.

Called by the window on resize rather than from resizeEvent here, where setting the height is undone by the resize that is still in progress.

Parameters:

width – int the instrument’s width in px

Returns:

int the depth it was given

resizeEvent(event)[source]
_place_hosts() → None[source]
static _mask(host: PySide6.QtWidgets.QWidget) → None[source]
eventFilter(watched, event)[source]
jdxi_editor.ui.windows.jdxi.panel.build_faceplate(window) → InstrumentFaceplate[source]

Build the faceplate and attach its controls to window.

Parameters:

window – JDXiWindow

Returns:

InstrumentFaceplate