src/eric7/MultiProject/AddProjectDialog.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9624
b47dfa7a137d
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
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 PyQt6.QtCore import pyqtSlot 12 from PyQt6.QtCore import QUuid, pyqtSlot
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox 13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
14 14
15 from eric7 import Preferences, Utilities 15 from eric7 import Preferences, Utilities
16 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes 16 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes
17 17
84 telling whether the project shall be the main project, a short 84 telling whether the project shall be the main project, a short
85 description for the project and the project category 85 description for the project and the project category
86 """ 86 """
87 if not self.uid: 87 if not self.uid:
88 # new project entry 88 # new project entry
89 from PyQt6.QtCore import QUuid
90
91 self.uid = QUuid.createUuid().toString() 89 self.uid = QUuid.createUuid().toString()
92 90
93 filename = self.filenamePicker.text() 91 filename = self.filenamePicker.text()
94 if not os.path.isabs(filename): 92 if not os.path.isabs(filename):
95 filename = Utilities.toNativeSeparators( 93 filename = Utilities.toNativeSeparators(

eric ide

mercurial