def updateType(self): """Notification on type update """ # building type _type = "" for ctrl in self.controls: _type = _type + ctrl.selection + "/" _type = _type[:-1] if scg_alphabet.elementsDescMap.has_key(_type): scg_alphabet.changeObjectType(self.object, _type) return True return False
def updateType(self): """Notification on type update """ # building type _type = "" for ctrl in self.controls: _type = _type + ctrl.selection + "/" _type = _type[:-1] if scg_alphabet.elementsDescMap.has_key(_type): scg_alphabet.changeObjectType(self.object, _type) return True return False
def _onButtonCancelClick(self, widget): scg_alphabet.changeObjectType(self.object, self.old_type) self._onButtonOkClick(widget)
def _onButtonCancelClick(self, widget): scg_alphabet.changeObjectType(self.object, self.old_type) self._onButtonOkClick(widget)