| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- # -*- coding: utf-8 -*-
- """
- /***************************************************************************
- customDialog
- A QGIS plugin
- custom
- Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
- -------------------
- begin : 2024-08-14
- git sha : $Format:%H$
- copyright : (C) 2024 by custom
- email : custom
- ***************************************************************************/
- /***************************************************************************
- * *
- * 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. *
- * *
- ***************************************************************************/
- """
- import locale
- import math
- import operator
- from qgis.PyQt.QtCore import QSettings, QDir, QFileInfo, Qt, pyqtSlot
- #from qgis.PyQt.QtGui import *
- from qgis.PyQt.QtWidgets import QDialog, QFileDialog, QMessageBox, QDialogButtonBox
- from qgis.core import QgsCoordinateTransform, QgsCoordinateReferenceSystem, QgsRectangle, QgsProject, QgsSettings
- import os
- from .ui.ui_custom_dialog_base import Ui_customDialogBase
- class customDialog(QDialog, Ui_customDialogBase):
- def __init__(self):
- QDialog.__init__(self)
- self.setupUi(self)
- # self.button_box.rejected.connect(self.reject)
- # self.button_box.accepted.connect(self.accept)
- def reject(self):
- QDialog.reject(self)
- QMessageBox.warning(self, self.tr('No'), self.tr('No No'))
- print("reject")
- def accept(self):
- QDialog.accept(self)
- QMessageBox.warning(self, self.tr('Yes'), self.tr('Yes Yes'))
- print("accept")
|