Пример #1
0
 def showSelectionDialog(self):
     dlg = MultipleFileInputDialog(self.selectedoptions)
     dlg.exec_()
     if dlg.selectedoptions != None:
         self.selectedoptions = dlg.selectedoptions
         self.label.setText(
             str(len(self.selectedoptions)) + " elements selected")
Пример #2
0
 def showSelectionDialog(self):
     if self.datatype == QgsProcessing.TypeFile:
         dlg = MultipleFileInputDialog(self.selectedoptions)
     else:
         dlg = MultipleInputDialog(self.options, self.selectedoptions, datatype=self.datatype)
     dlg.exec_()
     if dlg.selectedoptions is not None:
         self.selectedoptions = dlg.selectedoptions
         self.leText.setText(
             self.tr('{0} elements selected').format(len(self.selectedoptions)))
         self.selectionChanged.emit()
Пример #3
0
 def showSelectionDialog(self):
     if self.datatype == QgsProcessing.TypeFile:
         dlg = MultipleFileInputDialog(self.selectedoptions)
     else:
         dlg = MultipleInputDialog(self.options, self.selectedoptions, datatype=self.datatype)
     dlg.exec_()
     if dlg.selectedoptions is not None:
         self.selectedoptions = dlg.selectedoptions
         self.leText.setText(
             self.tr('{0} elements selected').format(len(self.selectedoptions)))
         self.selectionChanged.emit()
Пример #4
0
 def showSelectionDialog(self):
     dlg = MultipleFileInputDialog(self.selectedoptions)
     dlg.exec_()
     if dlg.selectedoptions != None:
         self.selectedoptions = dlg.selectedoptions
         self.label.setText(self.tr('%d elements selected') % len(self.selectedoptions))