''

def _enter_array(self, inline):

    offset = (self.get_position('cursor') - self.get_position('sol'))
    rect = self.cursorRect()
    dlg = NumpyArrayDialog(self, inline, offset)
    x = rect.left()
    x = (x - 14)
    y = (rect.top() + ((rect.bottom() - rect.top()) / 2))
    y = ((y - (dlg.height() / 2)) - 3)
    pos = QPoint(x, y)
    pos = self.calculate_real_position(pos)
    dlg.move(self.mapToGlobal(pos))
    if self.is_editor():
        python_like_check = self.is_python_like()
        suffix = '\n'
    else:
        python_like_check = True
        suffix = ''
    if (python_like_check and dlg.exec_()):
        text = (dlg.text() + suffix)
        if (text != ''):
            cursor = self.textCursor()
            cursor.beginEditBlock()
            cursor.insertText(text)
            cursor.endEditBlock()
