Skip to content

Commit

Permalink
Deshabilitado el boton de añadir formulario si no hay una seccion. refs
Browse files Browse the repository at this point in the history
  • Loading branch information
jjdelcerro authored and jjdelcerro committed Apr 30, 2018
1 parent 3c6e9a3 commit cd80832
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions designer.py
Expand Up @@ -211,6 +211,8 @@ def setSection(self, section):
self.btnSectionAdd.setEnabled(True)
self.btnSectionRename.setEnabled(False)
self.btnFormDelete.setEnabled(False)
self.btnFormAdd.setEnabled(False)
self.btnFormRename.setEnabled(False)
self.btnFormItemAdd.setEnabled(False)
self.btnFormItemDelete.setEnabled(False)
self.btnFormItemDown.setEnabled(False)
Expand All @@ -225,6 +227,7 @@ def setSection(self, section):
self.txtSectionDescription.setText(section.getDescription())
self.btnSectionDelete.setEnabled(True)
self.btnSectionRename.setEnabled(True)
self.btnFormAdd.setEnabled(True)
model = DefaultComboBoxModel()
for form in section:
model.addElement(form)
Expand Down

0 comments on commit cd80832

Please sign in to comment.