def remove(self, widget):  #renomear para removeSubBlock
     #print 'BlockHolder: remove'
     if self.subBlock != widget: return
     Element.remove(self, widget)
     self.subBlock.parentBlock = None
     self.subBlock = None
     if widget.holderSiblingUp:
         widget.holderSiblingUp.argument.enable = True
Beispiel #2
0
 def remove(self, component):
     if isinstance(component, ComponentBlock):
         countComponents[component.name].remove(component.text +
                                                str(component.number))
     return Element.remove(self, component)