def init_squids(self, squids_list):
    self.n_squids = ((len(squids_list) + len(self.str_id_lst)) + 1)
    self.squids_list = squids_list
    self.sq_label_size = (max(map(len, squids_list)) + 3)
    ncols = int(math.ceil((float(self.n_squids) / self.squids_per_col)))
    self.screen_size_x = (ncols * self.squid_col_width)
    self.screen_size_y = (self.squids_per_col + 2)
    self.pos_map = {}
    for (j, sq) in enumerate(sorted(squids_list, key=cmp_to_key(str_cmp_with_numbers_sorted))):
        i = ((j + len(self.str_id_lst)) + 1)
        y = ((i % self.squids_per_col) + 1)
        x = (1 + (self.squid_col_width * (i // self.squids_per_col)))
        self.pos_map[sq] = (x, y)
    self.stdscr = curses.initscr()
    curses.start_color()
    curses.noecho()
    curses.cbreak()
    curses.curs_set(0)
    curses.init_pair(1, curses.COLOR_RED, curses.COLOR_WHITE)
    curses.init_pair(2, curses.COLOR_GREEN, curses.COLOR_BLACK)
    curses.init_pair(3, curses.COLOR_BLUE, curses.COLOR_BLACK)
    curses.init_pair(4, curses.COLOR_YELLOW, curses.COLOR_BLACK)
    curses.init_pair(5, curses.COLOR_BLUE, curses.COLOR_WHITE)
    self.stdscr.clear()
    signal.signal(signal.SIGWINCH, signal.SIG_IGN)
def init_squids(self, squids_list):
    self.n_squids = ((len(squids_list) + len(self.str_id_lst)) + 1)
    self.squids_list = squids_list
    self.sq_label_size = (max(map(len, squids_list)) + 3)
    ncols = int(math.ceil((float(self.n_squids) / self.squids_per_col)))
    self.screen_size_x = (ncols * self.squid_col_width)
    self.screen_size_y = (self.squids_per_col + 2)
    self.pos_map = {}
    for (j, sq) in enumerate(sorted(squids_list, key=cmp_to_key(str_cmp_with_numbers_sorted))):
        i = ((j + len(self.str_id_lst)) + 1)
        y = ((i % self.squids_per_col) + 1)
        x = (1 + (self.squid_col_width * (i // self.squids_per_col)))
        self.pos_map[sq] = (x, y)
    self.stdscr = curses.initscr()
    curses.start_color()
    curses.noecho()
    curses.cbreak()
    curses.curs_set(0)
    curses.init_pair(1, curses.COLOR_RED, curses.COLOR_WHITE)
    curses.init_pair(2, curses.COLOR_GREEN, curses.COLOR_BLACK)
    curses.init_pair(3, curses.COLOR_BLUE, curses.COLOR_BLACK)
    curses.init_pair(4, curses.COLOR_YELLOW, curses.COLOR_BLACK)
    curses.init_pair(5, curses.COLOR_BLUE, curses.COLOR_WHITE)
    self.stdscr.clear()
    signal.signal(signal.SIGWINCH, signal.SIG_IGN)