eric7/MultiProject/AddProjectDialog.py

branch
eric7
changeset 8318
962bce857696
parent 8312
800c432b34c8
child 8327
666c2b81cbb7
equal deleted inserted replaced
8316:0c7a44af84bc 8318:962bce857696
7 Module implementing the add project dialog. 7 Module implementing the add project dialog.
8 """ 8 """
9 9
10 import os 10 import os
11 11
12 from PyQt5.QtCore import pyqtSlot 12 from PyQt6.QtCore import pyqtSlot
13 from PyQt5.QtWidgets import QDialog, QDialogButtonBox 13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
14 14
15 from E5Gui.E5PathPicker import E5PathPickerModes 15 from E5Gui.E5PathPicker import E5PathPickerModes
16 16
17 from .Ui_AddProjectDialog import Ui_AddProjectDialog 17 from .Ui_AddProjectDialog import Ui_AddProjectDialog
18 18
83 telling whether the project shall be the main project, a short 83 telling whether the project shall be the main project, a short
84 description for the project and the project category 84 description for the project and the project category
85 """ 85 """
86 if not self.uid: 86 if not self.uid:
87 # new project entry 87 # new project entry
88 from PyQt5.QtCore import QUuid 88 from PyQt6.QtCore import QUuid
89 self.uid = QUuid.createUuid().toString() 89 self.uid = QUuid.createUuid().toString()
90 90
91 filename = self.filenamePicker.text() 91 filename = self.filenamePicker.text()
92 if not os.path.isabs(filename): 92 if not os.path.isabs(filename):
93 filename = Utilities.toNativeSeparators( 93 filename = Utilities.toNativeSeparators(

eric ide

mercurial