def __init__(self, iface): GenericTool.__init__(self, iface) self.labelName = "Calculate Area in Region" self.dlg = CalculateRegionDialog() self.dlg.lineEditShapeClip.clear() self.dlg.lineEditFolder.clear() self.dlg.lineEditShapeOut.clear() self.dlg.lineEditCoordRef.clear() self.dlg.pushButtonShape.clicked.connect(self.InputShape) self.dlg.pushButtonFolder.clicked.connect(self.InputFolder) self.dlg.pushButtonShapeOut.clicked.connect(self.OutputShape) self.dlg.pushButtonCoordRef.clicked.connect(self.SelectCoordSystem) self.ListUnits = ['Square meters','Square kilometers','Hectares'] self.dlg.Units.addItems(self.ListUnits)