Exemplo n.º 1
0
    def __startSendThread(self):
        # Add a hint on how to display the options menu
        self.screen.addstr(0, 5, "Ctrl+U for options")
        self.screen.refresh()

        # Show the now chatting message
        self.appendMessage('', "Now chatting with %s" % self.connectedNick,
                           curses.color_pair(0))

        self.sendThread = CursesSendThread(self)
        self.sendThread.start()
Exemplo n.º 2
0
    def run(self, screen):
        self.screen = screen
        (self.height, self.width) = self.screen.getmaxyx()

        self.__drawUI()

        self.nick = ""

        self.sender = CursesSendThread(self, self.write_callback)
        self.sender.start()
        self.postConnectToServer()