'parent : specifies the parent widget'

def __init__(self, parent, history_filename, profile=False, initial_message=None):

    ConsoleBaseWidget.__init__(self, parent)
    SaveHistoryMixin.__init__(self, history_filename)
    BrowseHistoryMixin.__init__(self)
    self.current_prompt_pos = None
    self.new_input_line = True
    assert is_text_string(history_filename)
    self.history = self.load_history()
    self.historylog_filename = CONF.get('main', 'historylog_filename', get_conf_path('history.log'))
    self.menu = None
    self.setup_context_menu()
    self.profile = profile
    self.__buffer = []
    if initial_message:
        self.__buffer.append(initial_message)
    self.__timestamp = 0.0
    self.__flushtimer = QTimer(self)
    self.__flushtimer.setSingleShot(True)
    self.__flushtimer.timeout.connect(self.flush)
    self.setFocus()
    self.setCursorWidth(CONF.get('main', 'cursor/width'))
