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
Classes
The panel: the instrument picture, with the hosts laid over it. |
Functions
|
The empty faceplate from Qt Designer. |
|
|
|
Build the faceplate and attach its controls to window. |
Module Contents
- 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.QWidgetThe panel: the instrument picture, with the hosts laid over it.
- scaled(rect: PySide6.QtCore.QRect) PySide6.QtCore.QRect[source]
recton 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
widthpx 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
- 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