这是代码:
plot_ly
我想在单击按钮Q(QgsAttributeForm)时显示消息,例如:
def formOpen(dialog, layer, feature):
"""Function called when a connec is identified in the map"""
global feature_dialog
# Create class to manage Feature Form interaction
feature_dialog = ParentDialog(dialog, layer, feature)
init_config()
def init_config():
pass
class ParentDialog():
def __init__(self, dialog, layer, feature):
""" Constructor class """
self.dialog = dialog
self.layer = layer
self.feature = feature
self.iface = iface
有什么方法可以将对话框(QgsAttributeForm)与closeEvent相关联,还是有其他解决方案?