Beispiel #1
0
    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
Beispiel #2
0
 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
Beispiel #3
0
 def _onButtonCancelClick(self, widget):
     scg_alphabet.changeObjectType(self.object, self.old_type)
     self._onButtonOkClick(widget)
Beispiel #4
0
 def _onButtonCancelClick(self, widget):
     scg_alphabet.changeObjectType(self.object, self.old_type)
     self._onButtonOkClick(widget)