I usually use QGIS Plugin Builder to create working templates for QGIS plugins.
While a generic Python plugin needs the files below;
__init__.py
metadata.txt
resources.py (translated from resources.rcc via pyrcc4)
myPlugin.py
myPlugin_UI.py (translated from myPlugin_UI.ui via pyuic4)
Plugin Builder also creates the following file;
myPlugin_dialog.py
I can understand and use it but why do we need this file myPlugin_dialog.py?
If I import "myPlugin_UI.py" at the beginning, I can already access and interact with the form objects directly from the main module "myPlugin.py"
Why should I need an additional file? What is the advantage of this structure?
(Please explain in basic word since I am not fully fluent with PyQt)