jdxi_editor.main
Main entry point for the JD-Xi Editor application.
This module sets up the application environment, including logging, MIDI message listening, and application window initialization. It also manages the application’s lifecycle, from initialization to event loop execution.
- Functions:
midi_callback(msg): Callback function for handling incoming MIDI messages.
listen_midi(port_name, callback): Listens for MIDI messages on the specified port and triggers the provided callback function.
- setup_logging(): Configures logging for the application, including console and file
logging with rotation.
main(): Main entry point to initialize and run the JD-Xi Editor application, set up the window, and handle MIDI message listening.
Attributes
Functions
|
Load Qt .qm translation files for the current locale (e.g. en_GB for 'Bar' instead of 'Measure'). |
|
Main entry point for the JD-Xi Editor application. |
|
Setup and digital a professional application splash screen with rotating status text. |
Module Contents
- jdxi_editor.main.load_translations(app: PySide6.QtWidgets.QApplication) bool[source]
Load Qt .qm translation files for the current locale (e.g. en_GB for ‘Bar’ instead of ‘Measure’). Place .qm files in jdxi_editor/i18n/ or in resources/translations/. Returns True if a translator was installed.
- jdxi_editor.main.setup_splash_screen(app: PySide6.QtWidgets.QApplication) tuple[PySide6.QtWidgets.QSplashScreen, PySide6.QtWidgets.QProgressBar, jdxi_editor.ui.widgets.digital.title.DigitalTitle][source]
Setup and digital a professional application splash screen with rotating status text.
- Returns:
(splash_screen, progress_bar, status_label) for updating progress
- Return type: