def addChannel(self, channel, lazy = False, isNotified = False):
     clientID = channel.getClientID()
     isSystem = channel.isSystem()
     if lazy:
         order = channel_num_gen.getOrder4LazyChannel(channel.getName())
         openHandler = lambda : events_dispatcher.showLazyChannelWindow(clientID)
     else:
         order = channel_num_gen.genOrder4Channel(channel)
         openHandler = lambda : events_dispatcher.showLobbyChannelWindow(clientID)
     self.__handlers[clientID] = (ChannelFindCriteria(clientID), openHandler)
     self.__channelsDP.addItem(clientID, {'label': channel.getFullName(),
      'canClose': not isSystem,
      'isNotified': isNotified,
      'icon': None,
      'order': order})
     return
 def addChannel(self, channel, lazy = False, isNotified = False):
     clientID = channel.getClientID()
     isSystem = channel.isSystem()
     if lazy:
         order = channel_num_gen.getOrder4LazyChannel(channel.getName())
         openHandler = lambda : events_dispatcher.showLazyChannelWindow(clientID)
     else:
         order = channel_num_gen.genOrder4Channel(channel)
         openHandler = lambda : events_dispatcher.showLobbyChannelWindow(clientID)
     self.__handlers[clientID] = (ChannelFindCriteria(clientID), openHandler, ViewTypes.WINDOW)
     self.__channelsDP.addItem(clientID, {'label': channel.getFullName(),
      'canClose': not isSystem,
      'isNotified': isNotified,
      'icon': None,
      'order': order,
      'isInProgress': False})
     return
 def addChannel(self, channel, lazy=False, isNotified=False):
     clientID = channel.getClientID()
     isSystem = channel.isSystem()
     if lazy:
         order = channel_num_gen.getOrder4LazyChannel(channel.getName())
         openHandler = lambda: events_dispatcher.showLazyChannelWindow(clientID)
     else:
         order = channel_num_gen.genOrder4Channel(channel)
         openHandler = lambda: events_dispatcher.showLobbyChannelWindow(clientID)
     self.__handlers[clientID] = (ChannelFindCriteria(clientID), openHandler, ViewTypes.WINDOW)
     self.__channelsDP.addItem(
         clientID,
         {
             "label": channel.getFullName(),
             "canClose": not isSystem,
             "isNotified": isNotified,
             "icon": None,
             "order": order,
             "isInProgress": False,
         },
     )
     return