Exemplo n.º 1
0
 def install_connections(
     self
 ):  #this override has to be here so that translation will happen when buttons are disabled
     if self._is_enabled:
         ButtonElement.install_connections(self)
     elif ((self._msg_channel != self._original_channel)
           or (self._msg_identifier != self._original_identifier)):
         self._install_translation(self._msg_type,
                                   self._original_identifier,
                                   self._original_channel,
                                   self._msg_identifier, self._msg_channel)
 def install_connections(
     self
 ):  # this override has to be here so that translation will happen when buttons are disabled
     if self._is_enabled:
         ButtonElement.install_connections(self)
     elif (self._msg_channel != self._original_channel) or (self._msg_identifier != self._original_identifier):
         self._install_translation(
             self._msg_type,
             self._original_identifier,
             self._original_channel,
             self._msg_identifier,
             self._msg_channel,
         )
Exemplo n.º 3
0
 def install_connections(self, install_translation_callback,
                         install_mapping_callback,
                         install_forwarding_callback):
     if self._is_enabled:
         ButtonElement.install_connections(self,
                                           install_translation_callback,
                                           install_mapping_callback,
                                           install_forwarding_callback)
     else:
         if self._msg_channel != self._original_channel or self._msg_identifier != self._original_identifier:
             install_translation_callback(self._msg_type,
                                          self._original_identifier,
                                          self._original_channel,
                                          self._msg_identifier,
                                          self._msg_channel)