当前位置: 首页>>代码示例>>Python>>正文


Python MultipleFileInputDialog.MultipleFileInputDialog类代码示例

本文整理汇总了Python中processing.gui.MultipleFileInputDialog.MultipleFileInputDialog的典型用法代码示例。如果您正苦于以下问题:Python MultipleFileInputDialog类的具体用法?Python MultipleFileInputDialog怎么用?Python MultipleFileInputDialog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了MultipleFileInputDialog类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: showSelectionDialog

 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()
开发者ID:marcel-dancak,项目名称:QGIS,代码行数:11,代码来源:MultipleInputPanel.py

示例2: showSelectionDialog

 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))
开发者ID:ACorradini,项目名称:QGIS,代码行数:6,代码来源:MultipleFileInputPanel.py


注:本文中的processing.gui.MultipleFileInputDialog.MultipleFileInputDialog类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。