def btnAdd_Clicked(self): self._frmLIDUsage = frmLIDUsage(self._main_form) # add to this subcatchment self._frmLIDUsage.set_add(self._main_form.project, self, self.subcatchment_name) self._frmLIDUsage.setWindowModality(QtCore.Qt.ApplicationModal) self._frmLIDUsage.show()
def btnEdit_Clicked(self): self._frmLIDUsage = frmLIDUsage(self._main_form) row = self.tblControls.currentRow() lid_selected = str(self.tblControls.item(row, 0).text()) # edit the lid for this subcatchment and this lid name self._frmLIDUsage.set_edit(self._main_form.project, self, row, lid_selected, self.subcatchment_id) self._frmLIDUsage.show()
def btnAdd_Clicked(self): self._frmLIDUsage = frmLIDUsage(self._main_form) # add to this subcatchment self._frmLIDUsage.set_add(self._main_form.project, self, self.subcatchment_id) self._frmLIDUsage.show()