From 54585175ed414e59d144b94a2c3dc86eb9ab7c2b Mon Sep 17 00:00:00 2001 From: Tom LAVEILLE Date: Thu, 26 Sep 2024 16:49:44 +0200 Subject: [PATCH] Supprimer about_form.py --- about_form.py | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 about_form.py diff --git a/about_form.py b/about_form.py deleted file mode 100644 index 3d9836b..0000000 --- a/about_form.py +++ /dev/null @@ -1,46 +0,0 @@ -import os.path - -from pathlib import Path - -from qgis.PyQt import uic -from qgis.PyQt.QtGui import QPixmap -from qgis.PyQt.QtWidgets import QDialog - -from .tools.resources import devlog - -ABOUT_FORM_CLASS, _ = uic.loadUiType( - os.path.join( - str(Path(__file__).resolve().parent), - 'tools/ui', - 'CenRa_AutoMap_about_form.ui' - ) -) - - -class AutoMapAboutDialog(QDialog, ABOUT_FORM_CLASS): - - """ About - Let the user display the about dialog. """ - - def __init__(self, iface, parent=None): - super().__init__(parent) - self.iface = iface - self.setupUi(self) - - self.viewer.setHtml(devlog('CenRa_AUTOMAP')) - - self.rejected.connect(self.onReject) - self.buttonBox.rejected.connect(self.onReject) - self.buttonBox.accepted.connect(self.onAccept) - - def onAccept(self): - """ - Save options when pressing OK button - """ - self.accept() - - def onReject(self): - """ - Run some actions when - the user closes the dialog - """ - self.close() \ No newline at end of file