本文整理汇总了Python中qgis.PyQt.uic.loadUiType函数的典型用法代码示例。如果您正苦于以下问题:Python loadUiType函数的具体用法?Python loadUiType怎么用?Python loadUiType使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了loadUiType函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: showLabelOptions
def showLabelOptions(self):
options = self.labelOptions
self.dialog = QDialog()
lo = uic.loadUiType(os.path.join(self.path, LABEL_OPTIONS_WIDGET_FILE))[0]
self.labelOptionsDialog = lo()
self.labelOptionsDialog.setupUi(self.dialog)
self.labelOptionsDialog.fontsize.setValue(options.size)
self.labelOptionsDialog.time_format.setText(options.fmt)
self.labelOptionsDialog.font.setCurrentFont(QFont(options.font))
self.labelOptionsDialog.placement.addItems(TimestampLabelConfig.PLACEMENTS)
self.labelOptionsDialog.placement.setCurrentIndex(TimestampLabelConfig.PLACEMENTS.index(options.placement))
self.labelOptionsDialog.text_color.setColor(QColor(options.color))
self.labelOptionsDialog.bg_color.setColor(QColor(options.bgcolor))
self.labelOptionsDialog.buttonBox.accepted.connect(self.saveLabelOptions)
self.dialog.show()
开发者ID:anitagraser,项目名称:TimeManager,代码行数:17,代码来源:timemanagerguicontrol.py
示例2: get_ui_class
def get_ui_class(ui_file):
"""Get UI Python class from .ui file.
Can be filename.ui or subdirectory/filename.ui
:param ui_file: The file of the ui in safe.gui.ui
:type ui_file: str
"""
os.path.sep.join(ui_file.split('/'))
ui_file_path = os.path.abspath(
os.path.join(
os.path.dirname(__file__),
os.pardir,
'gui',
'ui',
ui_file
)
)
return uic.loadUiType(ui_file_path)[0]
开发者ID:inasafe,项目名称:inasafe,代码行数:19,代码来源:resources.py
示例3: import
from qgis.PyQt.QtGui import QCursor
from qgis.gui import QgsEncodingFileDialog, QgsExpressionBuilderDialog
from qgis.core import (QgsDataSourceUri,
QgsCredentials,
QgsExpressionContext,
QgsExpressionContextUtils,
QgsExpression,
QgsExpressionContextScope)
from processing.core.ProcessingConfig import ProcessingConfig
from processing.core.outputs import OutputVector
from processing.core.outputs import OutputDirectory
from processing.gui.PostgisTableSelector import PostgisTableSelector
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'widgetBaseSelector.ui'))
class OutputSelectionPanel(BASE, WIDGET):
SAVE_TO_TEMP_FILE = QCoreApplication.translate(
'OutputSelectionPanel', '[Save to temporary file]')
SAVE_TO_TEMP_LAYER = QCoreApplication.translate(
'OutputSelectionPanel', '[Create temporary layer]')
def __init__(self, output, alg):
super(OutputSelectionPanel, self).__init__(None)
self.setupUi(self)
self.output = output
self.alg = alg
开发者ID:wongjimsan,项目名称:QGIS,代码行数:32,代码来源:OutputSelectionPanel.py
示例4: import
from qgis.gui import QgsGui, QgsErrorDialog
from qgis.core import (QgsApplication,
QgsSettings,
QgsError,
QgsProcessingAlgorithm,
QgsProcessingFeatureBasedAlgorithm)
from qgis.utils import iface, OverrideCursor
from processing.gui.AlgorithmDialog import AlgorithmDialog
from processing.script import ScriptUtils
pluginPath = os.path.split(os.path.dirname(__file__))[0]
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, "ui", "DlgScriptEditor.ui"))
class ScriptEditorDialog(BASE, WIDGET):
hasChanged = False
def __init__(self, filePath=None, parent=None):
super(ScriptEditorDialog, self).__init__(parent)
self.setupUi(self)
QgsGui.instance().enableAutoGeometryRestore(self)
self.editor.initLexer()
self.searchWidget.setVisible(False)
if iface is not None:
开发者ID:SrNetoChan,项目名称:Quantum-GIS,代码行数:32,代码来源:ScriptEditorDialog.py
示例5: import
from processing.gui.MessageDialog import MessageDialog
from processing.gui.AlgorithmDialog import AlgorithmDialog
from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog
from processing.gui.EditRenderingStylesDialog import EditRenderingStylesDialog
from processing.gui.MessageBarProgress import MessageBarProgress
from processing.gui.AlgorithmExecutor import execute
from processing.gui.ProviderActions import (ProviderActions,
ProviderContextMenuActions)
from processing.tools import dataobjects
from processing.gui.AlgorithmExecutor import execute_in_place
pluginPath = os.path.split(os.path.dirname(__file__))[0]
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'ProcessingToolbox.ui'))
class ProcessingToolbox(QgsDockWidget, WIDGET):
ALG_ITEM = 'ALG_ITEM'
PROVIDER_ITEM = 'PROVIDER_ITEM'
GROUP_ITEM = 'GROUP_ITEM'
NAME_ROLE = Qt.UserRole
TAG_ROLE = Qt.UserRole + 1
TYPE_ROLE = Qt.UserRole + 2
def __init__(self):
super(ProcessingToolbox, self).__init__(None)
self.tipWasClosed = False
self.in_place_mode = False
开发者ID:tomkralidis,项目名称:QGIS,代码行数:32,代码来源:ProcessingToolbox.py
示例6: BatchPanel
from processing.gui.GeometryPredicateSelectionPanel import GeometryPredicateSelectionPanel
from processing.core.parameters import ParameterFile
from processing.core.parameters import ParameterRaster
from processing.core.parameters import ParameterTable
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterExtent
from processing.core.parameters import ParameterCrs
from processing.core.parameters import ParameterPoint
from processing.core.parameters import ParameterSelection
from processing.core.parameters import ParameterFixedTable
from processing.core.parameters import ParameterMultipleInput
from processing.core.parameters import ParameterGeometryPredicate
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'widgetBatchPanel.ui'))
class BatchPanel(BASE, WIDGET):
PARAMETERS = "PARAMETERS"
OUTPUTS = "OUTPUTS"
def __init__(self, parent, alg):
super(BatchPanel, self).__init__(None)
self.setupUi(self)
self.wrappers = []
self.btnAdvanced.hide()
开发者ID:3liz,项目名称:Quantum-GIS,代码行数:31,代码来源:BatchPanel.py
示例7: import
from qgis.PyQt import uic
from qgis.PyQt.QtCore import QCoreApplication, Qt
from qgis.PyQt.QtWidgets import (QWidget, QHBoxLayout, QToolButton,
QLabel, QCheckBox, QSizePolicy)
from qgis.PyQt.QtGui import QIcon
from processing.gui.DestinationSelectionPanel import DestinationSelectionPanel
from processing.gui.wrappers import WidgetWrapperFactory, WidgetWrapper
from processing.tools.dataobjects import createContext
pluginPath = os.path.split(os.path.dirname(__file__))[0]\
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'widgetParametersPanel.ui'))
class ParametersPanel(BASE, WIDGET):
NOT_SELECTED = QCoreApplication.translate('ParametersPanel', '[Not selected]')
def __init__(self, parent, alg, in_place=False):
super(ParametersPanel, self).__init__(None)
self.setupUi(self)
self.in_place = in_place
self.grpAdvanced.hide()
self.scrollAreaWidgetContents.setContentsMargins(4, 4, 4, 4)
self.layoutMain = self.scrollAreaWidgetContents.layout()
开发者ID:enricofer,项目名称:QGIS,代码行数:31,代码来源:ParametersPanel.py
示例8: MatrixModelerWidget
import os
import warnings
from qgis.PyQt import uic
from qgis.PyQt.QtCore import Qt
from qgis.PyQt.QtGui import QStandardItemModel, QStandardItem
from qgis.PyQt.QtWidgets import QInputDialog, QMessageBox
from qgis.core import QgsApplication
pluginPath = os.path.split(os.path.dirname(__file__))[0]
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'matrixmodelerwidgetbase.ui'))
class MatrixModelerWidget(BASE, WIDGET):
def __init__(self, parent=None):
super(MatrixModelerWidget, self).__init__(parent)
self.setupUi(self)
self.btnAddColumn.setIcon(QgsApplication.getThemeIcon('/mActionNewAttribute.svg'))
self.btnRemoveColumn.setIcon(QgsApplication.getThemeIcon('/mActionDeleteAttribute.svg'))
self.btnAddRow.setIcon(QgsApplication.getThemeIcon('/symbologyAdd.svg'))
self.btnRemoveRow.setIcon(QgsApplication.getThemeIcon('/symbologyRemove.svg'))
self.btnClear.setIcon(QgsApplication.getThemeIcon('console/iconClearConsole.svg'))
self.btnAddColumn.clicked.connect(self.addColumn)
开发者ID:anitagraser,项目名称:QGIS,代码行数:31,代码来源:matrixmodelerwidget.py
示例9: GeometryPredicateSelectionPanel
__date__ = 'January 2015'
__copyright__ = '(C) 2015, Arnaud Morvan'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'
import os
from qgis.PyQt import uic
from qgis.PyQt.QtWidgets import QCheckBox
from qgis.core import Qgis, QgsVectorLayer
from processing.core.parameters import ParameterGeometryPredicate
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'widgetGeometryPredicateSelector.ui'))
class GeometryPredicateSelectionPanel(BASE, WIDGET):
unusablePredicates = {
Qgis.Point: {
Qgis.Point: ('touches', 'crosses'),
Qgis.Line: ('equals', 'contains', 'overlaps'),
Qgis.Polygon: ('equals', 'contains', 'overlaps')
},
Qgis.Line: {
Qgis.Point: ('equals', 'within', 'overlaps'),
Qgis.Line: [],
Qgis.Polygon: ('equals', 'contains', 'overlaps')
},
开发者ID:Zakui,项目名称:QGIS,代码行数:32,代码来源:GeometryPredicateSelectionPanel.py
示例10: Dialog
from builtins import str
from qgis.PyQt.QtCore import QVariant
from qgis.PyQt.QtWidgets import QDialog
from qgis.PyQt.QtWidgets import QMessageBox
from qgis.core import QgsProject, QgsWkbTypes, QgsMapLayerProxyModel
from qgis.PyQt import uic
import os,sys
import traceback
from datetime import datetime
from qgis.PyQt.QtWidgets import QDialogButtonBox
sys.path.append(os.path.dirname(__file__))
Ui_ApplyNoiseSymbology_window, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'ui_ApplyNoiseSymbology.ui'), resource_suffix='')
from . import on_ApplyNoiseSymbology
class Dialog(QDialog,Ui_ApplyNoiseSymbology_window):
def __init__(self, iface):
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
# Set up the user interface from Designer.
self.setupUi(self)
self.populate_comboBox()
self.progressBar.setValue(0)
开发者ID:Arpapiemonte,项目名称:openoise,代码行数:32,代码来源:do_ApplyNoiseSymbology.py
示例11: import
from qgis.PyQt.QtCore import pyqtSignal
from qgis.PyQt.QtWidgets import QDialog
from qgis.core import (QgsDataSourceUri,
QgsCredentials,
QgsExpression,
QgsRasterLayer,
QgsExpressionContextScope)
from qgis.gui import QgsEncodingFileDialog, QgsExpressionBuilderDialog
from qgis.utils import iface
from processing.core.parameters import ParameterNumber, ParameterVector, ParameterRaster
from processing.core.outputs import OutputNumber, OutputVector, OutputRaster
from processing.modeler.ModelerAlgorithm import ValueFromInput, ValueFromOutput, CompoundValue
pluginPath = os.path.split(os.path.dirname(__file__))[0]
NUMBER_WIDGET, NUMBER_BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'widgetNumberSelector.ui'))
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'widgetBaseSelector.ui'))
class ModellerNumberInputPanel(BASE, WIDGET):
"""
Number input panel for use inside the modeller - this input panel
is based off the base input panel and includes a text based line input
for entering values. This allows expressions and other non-numeric
values to be set, which are later evalauted to numbers when the model
is run.
"""
hasChanged = pyqtSignal()
开发者ID:wongjimsan,项目名称:QGIS,代码行数:31,代码来源:NumberInputPanel.py
示例12: SettingsWindow
from builtins import range
# -*- coding: utf-8 -*-
#
# (c) 2016 Boundless, http://boundlessgeo.com
# This code is licensed under the GPL 2.0 license.
#
import os
from qgis.PyQt import uic
from qgis.PyQt.QtWidgets import QTableWidgetItem
WIDGET, BASE = uic.loadUiType(
os.path.join(os.path.dirname(__file__), 'settingswindow.ui'))
class SettingsWindow(BASE, WIDGET):
def __init__(self, settings):
super(SettingsWindow, self).__init__()
self.setupUi(self)
self.settings = {}
self.tableWidget.setRowCount(len(settings))
for i, key in enumerate(settings):
self.tableWidget.setItem(i, 0, QTableWidgetItem(key))
self.tableWidget.setItem(i, 1, QTableWidgetItem(settings[key]))
self.tableWidget.resizeColumnsToContents()
self.tableWidget.horizontalHeader().setStretchLastSection(True)
self.buttonBox.accepted.connect(self.okPressed)
self.buttonBox.rejected.connect(self.cancelPressed)
开发者ID:boundlessgeo,项目名称:qgis-tester-plugin,代码行数:31,代码来源:settingswindow.py
示例13: import
import html
from qgis.PyQt import uic
from qgis.PyQt.QtCore import pyqtSignal, Qt, QCoreApplication, QByteArray, QUrl
from qgis.PyQt.QtWidgets import QApplication, QDialogButtonBox, QVBoxLayout, QToolButton
from qgis.utils import iface
from qgis.core import (QgsProject,
QgsProcessingFeedback,
QgsSettings)
from qgis.gui import QgsHelp
from processing.core.ProcessingConfig import ProcessingConfig
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'DlgAlgorithmBase.ui'))
class AlgorithmDialogFeedback(QgsProcessingFeedback):
"""
Directs algorithm feedback to an algorithm dialog
"""
error = pyqtSignal(str)
progress_text = pyqtSignal(str)
info = pyqtSignal(str)
command_info = pyqtSignal(str)
debug_info = pyqtSignal(str)
console_info = pyqtSignal(str)
def __init__(self, dialog):
开发者ID:nirvn,项目名称:QGIS,代码行数:32,代码来源:AlgorithmDialogBase.py
示例14: FieldsMappingModel
QgsExpression,
QgsMapLayerProxyModel,
QgsProcessingFeatureSourceDefinition,
QgsProcessingUtils,
QgsProject,
QgsVectorLayer,
)
from qgis.gui import QgsFieldExpressionWidget
from processing.gui.wrappers import WidgetWrapper, DIALOG_STANDARD, DIALOG_MODELER, DIALOG_BATCH
from processing.tools import dataobjects
from processing.algs.qgis.FieldsMapper import FieldsMapper
pluginPath = os.path.dirname(__file__)
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'fieldsmappingpanelbase.ui'))
class FieldsMappingModel(QAbstractTableModel):
fieldTypes = OrderedDict([
(QVariant.Date, "Date"),
(QVariant.DateTime, "DateTime"),
(QVariant.Double, "Double"),
(QVariant.Int, "Integer"),
(QVariant.LongLong, "Integer64"),
(QVariant.String, "String"),
(QVariant.Bool, "Boolean")])
def __init__(self, parent=None):
super(FieldsMappingModel, self).__init__(parent)
开发者ID:raymondnijssen,项目名称:QGIS,代码行数:32,代码来源:FieldsMappingPanel.py
示例15: MessageDialog
__copyright__ = '(C) 2014, Alexander Bruy'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = 'fb28adfb4ad3370a3626a339a267ffae72380896'
import os
from qgis.PyQt import uic
from qgis.PyQt.QtGui import QDesktopServices
from qgis.PyQt.QtWidgets import QDockWidget
from qgis.utils import iface
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'DlgMessage.ui'))
class MessageDialog(BASE, WIDGET):
def __init__(self):
super(MessageDialog, self).__init__(None)
self.setupUi(self)
self.txtMessage.anchorClicked.connect(self.openLink)
def setTitle(self, title):
self.setWindowTitle(title)
def setMessage(self, message):
self.txtMessage.setHtml(message)
开发者ID:cz172638,项目名称:QGIS,代码行数:32,代码来源:MessageDialog.py
示例16: QIcon
from qgiscommons2.gui import execute
from geogig.gui.dialogs.geometrydiffviewerdialog import GeometryDiffViewerDialog
from geogig.geogigwebapi.diff import FEATURE_MODIFIED, FEATURE_ADDED, FEATURE_REMOVED
from geogig.geogigwebapi.commit import Commit
MODIFIED, ADDED, REMOVED = "M", "A", "R"
layerIcon = QIcon(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, "ui", "resources", "layer_group.svg"))
featureIcon = QIcon(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, "ui", "resources", "geometry.png"))
addedIcon = QIcon(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, "ui", "resources", "added.png"))
removedIcon = QIcon(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, "ui", "resources", "removed.png"))
modifiedIcon = QIcon(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, "ui", "resources", "modified.gif"))
sys.path.append(os.path.dirname(__file__))
pluginPath = os.path.split(os.path.dirname(os.path.dirname(__file__)))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'diffviewerdialog.ui'))
class DiffViewerDialog(WIDGET, BASE):
def __init__(self, parent, repo, refa, refb):
super(DiffViewerDialog, self).__init__(parent,
Qt.WindowSystemMenuHint | Qt.WindowTitleHint)
self.repo = repo
self.setupUi(self)
self.setWindowFlags(self.windowFlags() |
Qt.WindowSystemMenuHint)
self.commit1 = refa
self.commit1Panel = RefPanel(self.repo, refa)
开发者ID:boundlessgeo,项目名称:qgis-geogiglight-plugin,代码行数:32,代码来源:diffviewerdialog.py
示例17: HistoryDialog
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '2f44d52ee547a306df39a0a2c9914020b5d49fca'
import os
from qgis.PyQt import uic
from qgis.PyQt.QtCore import Qt
from qgis.PyQt.QtWidgets import QAction, QPushButton, QDialogButtonBox, QStyle, QMessageBox, QFileDialog, QMenu, QTreeWidgetItem
from qgis.PyQt.QtGui import QIcon
from processing.gui import TestTools
from processing.core.ProcessingLog import ProcessingLog
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'DlgHistory.ui'))
class HistoryDialog(BASE, WIDGET):
def __init__(self):
super(HistoryDialog, self).__init__(None)
self.setupUi(self)
self.groupIcon = QIcon()
self.groupIcon.addPixmap(self.style().standardPixmap(
QStyle.SP_DirClosedIcon), QIcon.Normal, QIcon.Off)
self.groupIcon.addPixmap(self.style().standardPixmap(
QStyle.SP_DirOpenIcon), QIcon.Normal, QIcon.On)
self.keyIcon = QIcon()
开发者ID:GeoCat,项目名称:QGIS,代码行数:31,代码来源:HistoryDialog.py
示例18: import
from qgis.PyQt.QtWidgets import (QTreeWidgetItem,
QFileDialog,
QMessageBox,
QInputDialog,
QColorDialog
)
from qgis.PyQt.QtXml import QDomDocument
from qgis.core import QgsApplication, QgsMapLayer
from qgis.analysis import QgsRelief
from processing.gui.wrappers import WidgetWrapper
from processing.tools import system
pluginPath = os.path.dirname(__file__)
WIDGET, BASE = uic.loadUiType(os.path.join(pluginPath, 'reliefcolorswidgetbase.ui'))
class ReliefColorsWidget(BASE, WIDGET):
def __init__(self):
super(ReliefColorsWidget, self).__init__(None)
self.setupUi(self)
self.btnAdd.setIcon(QgsApplication.getThemeIcon('/symbologyAdd.svg'))
self.btnRemove.setIcon(QgsApplication.getThemeIcon('/symbologyRemove.svg'))
self.btnUp.setIcon(QgsApplication.getThemeIcon('/mActionArrowUp.svg'))
self.btnDown.setIcon(QgsApplication.getThemeIcon('/mActionArrowDown.svg'))
self.btnLoad.setIcon(QgsApplication.getThemeIcon('/mActionFileOpen.svg'))
self.btnSave.setIcon(QgsApplication.getThemeIcon('/mActionFileSave.svg'))
self.btnAuto.setIcon(QgsApplication.getThemeIcon('/mActionDraw.svg'))
开发者ID:cayetanobv,项目名称:QGIS,代码行数:31,代码来源:ReliefColorsWidget.py
示例19: import
import warnings
from qgis.PyQt import uic
from qgis.PyQt.QtWidgets import QDialog, QTreeWidgetItem
from qgis.core import (Qgis,
QgsMessageLog,
QgsProcessingUtils,
QgsProcessingParameterDefinition,
QgsProcessingModelAlgorithm)
pluginPath = os.path.split(os.path.dirname(__file__))[0]
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'DlgHelpEdition.ui'))
class HelpEditionDialog(BASE, WIDGET):
ALG_DESC = 'ALG_DESC'
ALG_CREATOR = 'ALG_CREATOR'
ALG_HELP_CREATOR = 'ALG_HELP_CREATOR'
ALG_VERSION = 'ALG_VERSION'
SHORT_DESCRIPTION = 'SHORT_DESCRIPTION'
HELP_URL = 'HELP_URL'
def __init__(self, alg):
super(HelpEditionDialog, self).__init__(None)
self.setupUi(self)
开发者ID:mach0,项目名称:QGIS,代码行数:31,代码来源:HelpEditionDialog.py
示例20: DtMoveNodeByArea_Dialog
* begin : 2013-08-14
* copyright : (C) 2013 by Angelos Tzotsos
* email : [email protected]
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
"""
from builtins import str
from qgis.PyQt import QtCore, QtWidgets, uic
import os
FORM_CLASS, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'ui_dtmovenodebyarea.ui'))
class DtMoveNodeByArea_Dialog(QtWidgets.QDialog, FORM_CLASS):
unsetTool = QtCore.pyqtSignal()
moveNode = QtCore.pyqtSignal()
def __init__(self, parent, flags):
super().__init__(parent, flags)
self.setupUi(self)
def initGui(self):
pass
def writeArea(self, area):
self.area_label.setText(str(area))
self.targetArea.setText(str(area))
开发者ID:bstroebl,项目名称:DigitizingTools,代码行数:31,代码来源:dtmovenodebyarea_dialog.py
注:本文中的qgis.PyQt.uic.loadUiType函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论