def __init__(self, console_widget):
assert isinstance(console_widget._control, (QtGui.QTextEdit, QtGui.QPlainTextEdit))<EOL>super(CompletionHtml, self).__init__()<EOL>self._text_edit = console_widget._control<EOL>self._console_widget = console_widget<EOL>self._text_edit.installEventFilter(self)<EOL>self._sliding_interval = None<EOL>self._justified_items = None<EOL>self.setFocusProxy(self._text_edit)<EOL>
Create a completion widget that is attached to the specified Qt
            text edit widget.