You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adapted to QGIS 3 using this base code: https://gis.stackexchange.com/a/231576/91497
"""
from PyQt5.QtWidgets import QApplication
def DeleteAllAttributeTables():
attrTables = [d for d in QApplication.instance().allWidgets() if d.objectName().split("/")[0] == u'QgsAttributeTableDialog' or d.objectName().split("/")[0] == u'AttributeTable']
print("These attribute tables will be closed: '%s'"%','.join(TableName))
for x in attrTables:
x.close()
def DeleteAttributeTableByName(name):
attrTables = [d for d in QApplication.instance().allWidgets() if d.objectName().split("/")[0] == u'QgsAttributeTableDialog' or d.objectName().split("/")[0] == u'AttributeTable']