本文整理汇总了Python中processing.gui.AlgorithmDialogBase.AlgorithmDialogBase.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python AlgorithmDialogBase.__init__方法的具体用法?Python AlgorithmDialogBase.__init__怎么用?Python AlgorithmDialogBase.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类processing.gui.AlgorithmDialogBase.AlgorithmDialogBase
的用法示例。
在下文中一共展示了AlgorithmDialogBase.__init__方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase [as 别名]
# 或者: from processing.gui.AlgorithmDialogBase.AlgorithmDialogBase import __init__ [as 别名]
def __init__(self, alg):
AlgorithmDialogBase.__init__(self, alg)
self.alg = alg
self.mainWidget = ParametersPanel(self, alg)
self.setMainWidget()
示例2: __init__
# 需要导入模块: from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase [as 别名]
# 或者: from processing.gui.AlgorithmDialogBase.AlgorithmDialogBase import __init__ [as 别名]
def __init__(self, alg):
AlgorithmDialogBase.__init__(self, alg)
self.alg = alg
self.mainWidget = GdalParametersPanel(self, alg)
self.setMainWidget()
self.mainWidget.parametersHaveChanged()
示例3: __init__
# 需要导入模块: from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase [as 别名]
# 或者: from processing.gui.AlgorithmDialogBase.AlgorithmDialogBase import __init__ [as 别名]
def __init__(self, alg):
AlgorithmDialogBase.__init__(self, alg)
self.alg = alg
self.setWindowTitle(self.tr("Batch Processing - %s") % self.alg.name)
self.mainWidget = BatchPanel(self, self.alg)
self.setMainWidget()
self.textShortHelp.setVisible(False)
示例4: __init__
# 需要导入模块: from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase [as 别名]
# 或者: from processing.gui.AlgorithmDialogBase.AlgorithmDialogBase import __init__ [as 别名]
def __init__(self, alg):
AlgorithmDialogBase.__init__(self, alg)
self.alg = alg
self.setMainWidget(self.getParametersPanel(alg, self))
self.bar = QgsMessageBar()
self.bar.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
self.layout().insertWidget(0, self.bar)
self.runAsBatchButton = QPushButton(QCoreApplication.translate("AlgorithmDialog", "Run as Batch Process…"))
self.runAsBatchButton.clicked.connect(self.runAsBatch)
self.buttonBox.addButton(self.runAsBatchButton, QDialogButtonBox.ResetRole) # reset role to ensure left alignment
示例5: __init__
# 需要导入模块: from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase [as 别名]
# 或者: from processing.gui.AlgorithmDialogBase.AlgorithmDialogBase import __init__ [as 别名]
def __init__(self, alg):
AlgorithmDialogBase.__init__(self, alg)
self.alg = alg
self.bar = QgsMessageBar()
self.bar.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
self.layout().insertWidget(0, self.bar)
self.setMainWidget(GdalParametersPanel(self, alg))
self.runAsBatchButton = QPushButton(self.tr("Run as Batch Process…"))
self.runAsBatchButton.clicked.connect(self.runAsBatch)
self.buttonBox.addButton(self.runAsBatchButton, QDialogButtonBox.ResetRole) # reset role to ensure left alignment
self.mainWidget.parametersHaveChanged()
示例6: __init__
# 需要导入模块: from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase [as 别名]
# 或者: from processing.gui.AlgorithmDialogBase.AlgorithmDialogBase import __init__ [as 别名]
def __init__(self, alg):
AlgorithmDialogBase.__init__(self, alg)
self.alg = alg
self.mainWidget = ParametersPanel(self, alg)
self.setMainWidget()
cornerWidget = QWidget()
layout = QVBoxLayout()
layout.setContentsMargins(0, 0, 0, 5)
self.tabWidget.setStyleSheet("QTabBar::tab { height: 30px; }")
runAsBatchButton = QPushButton(self.tr("Run as batch process..."))
runAsBatchButton.clicked.connect(self.runAsBatch)
layout.addWidget(runAsBatchButton)
cornerWidget.setLayout(layout)
self.tabWidget.setCornerWidget(cornerWidget)
示例7: __init__
# 需要导入模块: from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase [as 别名]
# 或者: from processing.gui.AlgorithmDialogBase.AlgorithmDialogBase import __init__ [as 别名]
def __init__(self, alg):
AlgorithmDialogBase.__init__(self, alg)
self.alg = alg
self.setMainWidget(self.getParametersPanel(alg, self))
self.bar = QgsMessageBar()
self.bar.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
self.layout().insertWidget(0, self.bar)
self.cornerWidget = QWidget()
layout = QVBoxLayout()
layout.setContentsMargins(0, 0, 0, 5)
self.runAsBatchButton = QPushButton(self.tr("Run as batch process..."))
self.runAsBatchButton.clicked.connect(self.runAsBatch)
layout.addWidget(self.runAsBatchButton)
self.cornerWidget.setLayout(layout)
self.tabWidget.setCornerWidget(self.cornerWidget)
示例8: __init__
# 需要导入模块: from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase [as 别名]
# 或者: from processing.gui.AlgorithmDialogBase.AlgorithmDialogBase import __init__ [as 别名]
def __init__(self, alg):
AlgorithmDialogBase.__init__(self, alg)
self.alg = alg
self.mainWidget = ParametersPanel(self, alg)
self.setMainWidget()
self.cornerWidget = QWidget()
layout = QVBoxLayout()
layout.setContentsMargins(0, 0, 0, 5)
self.tabWidget.setStyleSheet("QTabBar::tab { height: 30px; }")
self.runAsBatchButton = QPushButton(self.tr("Run as batch process..."))
self.runAsBatchButton.clicked.connect(self.runAsBatch)
layout.addWidget(self.runAsBatchButton)
self.cornerWidget.setLayout(layout)
self.tabWidget.setCornerWidget(self.cornerWidget)
QgsMapLayerRegistry.instance().layerWasAdded.connect(self.mainWidget.layerAdded)
QgsMapLayerRegistry.instance().layersWillBeRemoved.connect(self.mainWidget.layersWillBeRemoved)
示例9: __init__
# 需要导入模块: from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase [as 别名]
# 或者: from processing.gui.AlgorithmDialogBase.AlgorithmDialogBase import __init__ [as 别名]
def __init__(self, alg):
AlgorithmDialogBase.__init__(self, alg)
self.alg = alg
self.bar = QgsMessageBar()
self.bar.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
self.layout().insertWidget(0, self.bar)
self.setMainWidget(GdalParametersPanel(self, alg))
cornerWidget = QWidget()
layout = QVBoxLayout()
layout.setContentsMargins(0, 0, 0, 5)
self.tabWidget.setStyleSheet("QTabBar::tab { height: 30px; }")
runAsBatchButton = QPushButton(self.tr("Run as batch process..."))
runAsBatchButton.clicked.connect(self.runAsBatch)
layout.addWidget(runAsBatchButton)
cornerWidget.setLayout(layout)
self.tabWidget.setCornerWidget(cornerWidget)
self.mainWidget.parametersHaveChanged()