本文整理汇总了Python中dialog.Dialog.exec_方法的典型用法代码示例。如果您正苦于以下问题:Python Dialog.exec_方法的具体用法?Python Dialog.exec_怎么用?Python Dialog.exec_使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dialog.Dialog
的用法示例。
在下文中一共展示了Dialog.exec_方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
# 需要导入模块: from dialog import Dialog [as 别名]
# 或者: from dialog.Dialog import exec_ [as 别名]
def run(self):
from dialog import Dialog
dlg = Dialog(self.iface)
dlg.show()
dlg.exec_()
示例2: showSettings
# 需要导入模块: from dialog import Dialog [as 别名]
# 或者: from dialog.Dialog import exec_ [as 别名]
def showSettings(self):
settings = QtCore.QSettings()
dlg = Dialog(
settings.value("connect_points_plugin/point_layer_from", ""),
settings.value("connect_points_plugin/polygin_layer_to", ""),
settings.value("connect_points_plugin/filed_name_id_from", ""),
settings.value("connect_points_plugin/filed_name_link", ""),
settings.value("connect_points_plugin/filed_name_id_to", ""),
settings.value("connect_points_plugin/result_layer_name", ""),
self._iface.mainWindow()
)
res = dlg.exec_()
if res == Dialog.Accepted:
# QgisPlugin().plPrint("Save settings")
plugin_settings = dlg.getSettings()
settings.setValue("connect_points_plugin/point_layer_from", plugin_settings[0])
settings.setValue("connect_points_plugin/polygin_layer_to", plugin_settings[1])
settings.setValue("connect_points_plugin/filed_name_id_from", plugin_settings[2])
settings.setValue("connect_points_plugin/filed_name_link", plugin_settings[3])
settings.setValue("connect_points_plugin/filed_name_id_to", plugin_settings[4])
settings.setValue("connect_points_plugin/result_layer_name", plugin_settings[5])
dlg.deleteLater()
del dlg
示例3: showSettings
# 需要导入模块: from dialog import Dialog [as 别名]
# 或者: from dialog.Dialog import exec_ [as 别名]
def showSettings(self):
settings = QtCore.QSettings()
dlg = Dialog(
settings.value("pointsinpolygons_plugin/point_layer_name", ""),
settings.value("pointsinpolygons_plugin/polygin_layer_name", ""),
settings.value("pointsinpolygons_plugin/filed_name", ""),
self._iface.mainWindow()
)
res = dlg.exec_()
if res == Dialog.Accepted:
# Plugin().plPrint("Save settings")
plugin_settings = dlg.getSettings()
settings.setValue("pointsinpolygons_plugin/point_layer_name", plugin_settings[0])
settings.setValue("pointsinpolygons_plugin/polygin_layer_name", plugin_settings[1])
settings.setValue("pointsinpolygons_plugin/filed_name", plugin_settings[2])