You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to make a sub-plugin "Import Raster" from main plugin "LF Tools". I managed to make a icon on the toolbar but didnt manage to get the dailogue box upon clicking the plugin button in the toolbar. Could you please have a look and let me know where I am missing the code/logic.
My code is as following:
from PyQt5.QtCore import QCoreApplication, QVariant
from qgis.core import (QgsProcessing,
QgsProcessingException,
QgsProcessingAlgorithm,
QgsProcessingParameterString,
QgsProcessingParameterBoolean,
QgsProcessingParameterEnum,
QgsProcessingParameterRasterLayer,
QgsProcessingParameterFile,
QgsProcessingParameterFileDestination,
QgsApplication,
QgsRasterLayer,
QgsCoordinateReferenceSystem)
from lftools.geocapt.imgs import Imgs
from lftools.translations.translate import translate
import os
import inspect
from PyQt5.QtWidgets import QAction,QDialog, QVBoxLayout, QLabel, QLineEdit, QPushButton, QGridLayout, QMessageBox,QComboBox, QCheckBox, QDialogButtonBox
from qgis.utils import iface
from pathlib import Path
from qgis.PyQt.QtGui import QIcon
Hi,
I am trying to make a sub-plugin "Import Raster" from main plugin "LF Tools". I managed to make a icon on the toolbar but didnt manage to get the dailogue box upon clicking the plugin button in the toolbar. Could you please have a look and let me know where I am missing the code/logic.
My code is as following:
from PyQt5.QtCore import QCoreApplication, QVariant
from qgis.core import (QgsProcessing,
QgsProcessingException,
QgsProcessingAlgorithm,
QgsProcessingParameterString,
QgsProcessingParameterBoolean,
QgsProcessingParameterEnum,
QgsProcessingParameterRasterLayer,
QgsProcessingParameterFile,
QgsProcessingParameterFileDestination,
QgsApplication,
QgsRasterLayer,
QgsCoordinateReferenceSystem)
from lftools.geocapt.imgs import Imgs
from lftools.translations.translate import translate
import os
import inspect
from PyQt5.QtWidgets import QAction,QDialog, QVBoxLayout, QLabel, QLineEdit, QPushButton, QGridLayout, QMessageBox,QComboBox, QCheckBox, QDialogButtonBox
from qgis.utils import iface
from pathlib import Path
from qgis.PyQt.QtGui import QIcon
cmd_folder = os.path.split(inspect.getfile(inspect.currentframe()))[0]
class ImportRaster:
class ImportRasterDialog(QDialog):
def init(self, parent=None):
super().init(parent)
self.setWindowTitle("Import Raster Parameters")
The text was updated successfully, but these errors were encountered: