src/eric7/Project/PropertiesDialog.py

branch
eric7-maintenance
changeset 10460
3b34efa2857c
parent 10174
6aac1022f330
parent 10439
21c28b0f9e41
child 10616
4aa36fcd4a30
equal deleted inserted replaced
10366:411df92e881f 10460:3b34efa2857c
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 2
3 # Copyright (c) 2002 - 2023 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2002 - 2024 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the project properties dialog. 7 Module implementing the project properties dialog.
8 """ 8 """
238 @pyqtSlot(str) 238 @pyqtSlot(str)
239 def on_dirPicker_textChanged(self, txt): 239 def on_dirPicker_textChanged(self, txt):
240 """ 240 """
241 Private slot to handle a change of the project directory. 241 Private slot to handle a change of the project directory.
242 242
243 @param txt name of the project directory (string) 243 @param txt name of the project directory
244 @type str
244 """ 245 """
245 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( 246 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
246 bool(txt) 247 bool(txt)
247 and FileSystemUtilities.fromNativeSeparators(txt) not in self.__initPaths 248 and FileSystemUtilities.fromNativeSeparators(txt) not in self.__initPaths
248 ) 249 )
362 363
363 def getProjectType(self): 364 def getProjectType(self):
364 """ 365 """
365 Public method to get the selected project type. 366 Public method to get the selected project type.
366 367
367 @return selected UI type (string) 368 @return selected UI type
369 @rtype str
368 """ 370 """
369 return self.projectTypeComboBox.itemData( 371 return self.projectTypeComboBox.itemData(
370 self.projectTypeComboBox.currentIndex() 372 self.projectTypeComboBox.currentIndex()
371 ) 373 )
372 374
373 def getPPath(self): 375 def getPPath(self):
374 """ 376 """
375 Public method to get the project path. 377 Public method to get the project path.
376 378
377 @return data of the project directory edit (string) 379 @return data of the project directory edit
380 @rtype str
378 """ 381 """
379 return os.path.abspath(self.dirPicker.text()) 382 return os.path.abspath(self.dirPicker.text())
380 383
381 @pyqtSlot() 384 @pyqtSlot()
382 def __initFileTypesDict(self): 385 def __initFileTypesDict(self):

eric ide

mercurial