MultiProject/AddProjectDialog.py

changeset 3656
441956d8fce5
parent 3638
cede64100e13
child 4021
195a471c327b
equal deleted inserted replaced
3654:ffeb85cdc72d 3656:441956d8fce5
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 import os 12 import os
13 13
14 from PyQt4.QtCore import pyqtSlot 14 from PyQt5.QtCore import pyqtSlot
15 from PyQt4.QtGui import QDialog, QDialogButtonBox 15 from PyQt5.QtWidgets import QDialog, QDialogButtonBox
16 16
17 from E5Gui.E5Completers import E5FileCompleter 17 from E5Gui.E5Completers import E5FileCompleter
18 from E5Gui import E5FileDialog 18 from E5Gui import E5FileDialog
19 19
20 from .Ui_AddProjectDialog import Ui_AddProjectDialog 20 from .Ui_AddProjectDialog import Ui_AddProjectDialog
95 telling whether the project shall be the main project, a short 95 telling whether the project shall be the main project, a short
96 description for the project and the project category 96 description for the project and the project category
97 """ 97 """
98 if not self.uid: 98 if not self.uid:
99 # new project entry 99 # new project entry
100 from PyQt4.QtCore import QUuid 100 from PyQt5.QtCore import QUuid
101 self.uid = QUuid.createUuid().toString() 101 self.uid = QUuid.createUuid().toString()
102 102
103 filename = Utilities.toNativeSeparators(self.filenameEdit.text()) 103 filename = Utilities.toNativeSeparators(self.filenameEdit.text())
104 if not os.path.isabs(filename): 104 if not os.path.isabs(filename):
105 filename = Utilities.toNativeSeparators( 105 filename = Utilities.toNativeSeparators(

eric ide

mercurial