def test():
    """Text editor demo"""
    from spyder.utils.qthelpers import qapplication
    _app = qapplication()  # analysis:ignore

    text = """01234567890123456789012345678901234567890123456789012345678901234567890123456789
dedekdh elkd ezd ekjd lekdj elkdfjelfjk e"""
    dialog = TextEditor(text)
    dialog.exec_()

    dlg_text = dialog.get_value()
    assert text == dlg_text
def test ( ) : from spyder . utils . qthelpers import qapplication _app = qapplication ( ) text = """01234567890123456789012345678901234567890123456789012345678901234567890123456789
dedekdh elkd ezd ekjd lekdj elkdfjelfjk e""" dialog = TextEditor ( text ) dialog . exec_ ( ) dlg_text = dialog . get_value ( ) assert text == dlg_text
Text editor demo