Пример #1
0
 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
Пример #2
0
 def remove(self, component):
     if isinstance(component, ComponentBlock):
         countComponents[component.name].remove(component.text +
                                                str(component.number))
     return Element.remove(self, component)