'Register an curses win and a hotkey as Account window.
:param curses_win: the curses window associated with an account
:param acc_num: int denoting the hotkey associated with this account.'

def setwindow(self, curses_win, acc_num):

    self.window = curses_win
    self.acc_num = acc_num
    self.drawleadstr()
    self.ui.exec_locked(self.window.noutrefresh)
    for child in self.children:
        child.update(curses_win, self.location, 0)
        self.location += 1
