Firstly, the naming or structure of this directory needs to be improved (diagram), as the svg library from which we select components is also in this directory,
Next, the name of this file and its class isn't optimal, as it mainly deals with events occurring within the diagram.
The main focus of this issue is the implementation of the dropEvent method.
This could be simplified to maybe a factory pattern (more investigation required).
trnsysGUI/diagram/view.py
Firstly, the naming or structure of this directory needs to be improved (diagram), as the svg library from which we select components is also in this directory, Next, the name of this file and its class isn't optimal, as it mainly deals with events occurring within the diagram.
The main focus of this issue is the implementation of the dropEvent method. This could be simplified to maybe a factory pattern (more investigation required).