plugger.py
changeset 686 e4e1da75d411
parent 683 57aa9da845d5
child 689 dac752b613bb
equal deleted inserted replaced
685:2db8b87016a0 686:e4e1da75d411
   496                     return CurrentChannel # Can't go bellow 0, do nothing
   496                     return CurrentChannel # Can't go bellow 0, do nothing
   497             else : # Want to go up ?
   497             else : # Want to go up ?
   498                 res +=  1 # Test for n-1
   498                 res +=  1 # Test for n-1
   499         # Finally set IEC Channel
   499         # Finally set IEC Channel
   500         self.BaseParams.setIEC_Channel(res)
   500         self.BaseParams.setIEC_Channel(res)
   501         if DesiredChannel != res:
       
   502             self.GetPlugRoot().logger.write_warning(_("A child with IEC channel %d already exist -> %d\n")%(DesiredChannel,res))
       
   503         return res
   501         return res
   504 
   502 
   505     def _OpenView(self):
   503     def _OpenView(self):
   506         if self.EditorType is not None and self._View is None:
   504         if self.EditorType is not None and self._View is None:
   507             app_frame = self.GetPlugRoot().AppFrame
   505             app_frame = self.GetPlugRoot().AppFrame