__init__.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:binja_dynamics 作者: nccgroup 项目源码 文件源码
def submit_line(self):
        """ Writes the input to the text browser, adds it to the history, and
        adds it to the message queue to be sent to the binary """
        raw = self._textbox.text()
        line = self.decode(raw)
        if line is None:
            return
        if raw not in self.history:
            self.history.append(raw)
            action = QtWidgets.QAction(str(raw), self)
            action.triggered.connect(partial(self.set_text_box_contents, raw))
            self._hist_menu.insertAction(self._hist_menu.actions()[0], action)
        self._messages.put((line, None))
        self._autoscroll()
        # self._textBrowser.setTextColor(usercolor)
        # self._textBrowser.insertPlainText(line + "\n")
        # self._textBrowser.setTextColor(self.palette().color(QPalette.WindowText))
        self._textbox.clear()
        self._autoscroll()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号