Plugin PyQt5 and PyQt6 compatible & CenRa_Copie bug fix

This commit is contained in:
2025-05-19 14:00:58 +02:00
parent 3b0758ea5c
commit 3ef37aa696
37 changed files with 434 additions and 321 deletions
+8 -4
View File
@@ -32,8 +32,12 @@ from qgis.utils import iface"""
from builtins import str
from builtins import object
import os
from PyQt5.QtCore import *
from PyQt5.QtGui import *
try:
from PyQt5.QtCore import *
from PyQt5.QtGui import *
except:
from PyQt6.QtCore import *
from PyQt6.QtGui import *
from qgis.PyQt import uic
from qgis.core import *
from qgis.core import QgsDataSourceUri, QgsWkbTypes, QgsLayerTreeGroup, QgsLayerTreeLayer
@@ -152,7 +156,7 @@ class SICEN(object):
def open_about_dialog(self):
dialog = AboutDialog(self.iface)
dialog.exec_()
dialog.exec()
def unload(self):
# Remove the plugin menu item and icon
@@ -265,7 +269,7 @@ class SICEN(object):
# show the dialog
self.dlg.show()
# Run the dialog event loop
result = self.dlg.exec_()
result = self.dlg.exec()
# See if OK was pressed
if result == 1: