eric7/Project/Project.py

branch
eric7
changeset 8943
23f9c7b9e18e
parent 8881
54e42bc2437a
child 9056
af7c8c7b7c62
child 9111
4ac66b6c33a4
equal deleted inserted replaced
8940:e91951ff3bbd 8943:23f9c7b9e18e
20 pyqtSlot, QFile, QFileInfo, pyqtSignal, QCryptographicHash, QIODevice, 20 pyqtSlot, QFile, QFileInfo, pyqtSignal, QCryptographicHash, QIODevice,
21 QByteArray, QObject, QProcess 21 QByteArray, QObject, QProcess
22 ) 22 )
23 from PyQt6.QtGui import QKeySequence, QAction 23 from PyQt6.QtGui import QKeySequence, QAction
24 from PyQt6.QtWidgets import ( 24 from PyQt6.QtWidgets import (
25 QLineEdit, QToolBar, QDialog, QInputDialog, QApplication, QMenu 25 QLineEdit, QToolBar, QDialog, QInputDialog, QMenu
26 ) 26 )
27 from PyQt6.Qsci import QsciScintilla 27 from PyQt6.Qsci import QsciScintilla
28 28
29 from EricWidgets.EricApplication import ericApp 29 from EricWidgets.EricApplication import ericApp
30 from EricWidgets import EricFileDialog, EricMessageBox 30 from EricWidgets import EricFileDialog, EricMessageBox
2930 self.tr("Open project"), 2930 self.tr("Open project"),
2931 Preferences.getMultiProject("Workspace") or 2931 Preferences.getMultiProject("Workspace") or
2932 Utilities.getHomeDir(), 2932 Utilities.getHomeDir(),
2933 self.tr("Project Files (*.epj);;XML Project Files (*.e4p)")) 2933 self.tr("Project Files (*.epj);;XML Project Files (*.e4p)"))
2934 2934
2935 QApplication.processEvents()
2936
2937 if fn and self.closeProject(): 2935 if fn and self.closeProject():
2938 with EricOverrideCursor(): 2936 with EricOverrideCursor():
2939 ok = self.__readProject(fn) 2937 ok = self.__readProject(fn)
2940 if ok: 2938 if ok:
2941 self.opened = True 2939 self.opened = True

eric ide

mercurial