#NEWLINE# def main( ) : #NEWLINE# #INDENT# app = QtWidgets . QApplication ( sys . argv ) #NEWLINE# window = QtWidgets . QMainWindow ( ) #NEWLINE# editor = api . CodeEdit ( ) #NEWLINE# window . setCentralWidget ( editor ) #NEWLINE# editor . backend . start ( 'server.py' ) #NEWLINE# editor . modes . append ( modes . CodeCompletionMode ( ) ) #NEWLINE# editor . modes . append ( modes . CaretLineHighlighterMode ( ) ) #NEWLINE# editor . modes . append ( modes . PygmentsSyntaxHighlighter ( editor . document ( ) ) ) #NEWLINE# editor . panels . append ( panels . SearchAndReplacePanel ( ) , api . Panel . Position . BOTTOM ) #NEWLINE# editor . file . open ( __file__ ) #NEWLINE# window . show ( ) #NEWLINE# app . exec_ ( ) #NEWLINE# editor . file . close ( )