Esempio n. 1
0
 def __init__(self):
     self.textEdit = TETextEdit(
         language_name=TLPreferences['DFT_WRITING_LANGUAGE'])
     self.metadata = DPMetaData()
     self.filepath = None
     self.lastFiles = CLLastFiles()
     self.config_spelling = CLSpelling()
     self.config_autocor = CLAutoCorrection()
    def __init__(self, *args, **kargs):

        QtWidgets.QMainWindow.__init__(self, *args, **kargs)
        AWCore.__init__(self)
        # dict_autocorrection = FMAutoCorrectionFile.open()

        self.textEdit = TETextEdit(
            parent=self, language_name=TLPreferences['DFT_WRITING_LANGUAGE'])

        self.setCentralWidget(self.textEdit)

        self.fullScreened = False

        self.setup_actions()
        self.setup_connections()
        self.setup_menus()

        self.setWindowTitle("AthenaWriter : NewFile")
        self.setGeometry(100, 100, AWPreferences["INIT_SIZE_X"],
                         AWPreferences["INIT_SIZE_Y"])
        self.changeMessageStatusBar("Welcome in AthenaWriter :)")

        if AWPreferences['AUTOSAVE']:
            self.timer(start=True)