本文整理汇总了Python中dialog.Dialog.deleteLater方法的典型用法代码示例。如果您正苦于以下问题:Python Dialog.deleteLater方法的具体用法?Python Dialog.deleteLater怎么用?Python Dialog.deleteLater使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dialog.Dialog
的用法示例。
在下文中一共展示了Dialog.deleteLater方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: showSettings
# 需要导入模块: from dialog import Dialog [as 别名]
# 或者: from dialog.Dialog import deleteLater [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