aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/codeeditor/main.py
blob: cffcca02c0b96d7922dd81f8542405bbcecd9347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import sys
from PySide6.QtWidgets import QApplication
from codeeditor import CodeEditor

"""PySide6 port of the widgets/codeeditor example from Qt5"""

if __name__ == "__main__":
    app = QApplication([])
    editor = CodeEditor()
    editor.setWindowTitle("Code Editor Example")
    editor.show()
    sys.exit(app.exec())