Template
forked from CEN-RA/Plugin_QGIS
Plugin PyQt5 and PyQt6 compatible & CenRa_Copie bug fix
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user