eric7/Project/PropertiesDialog.py

branch
eric7
changeset 8459
0ae07748dbe8
parent 8358
144a6b854f70
child 8881
54e42bc2437a
equal deleted inserted replaced
8458:d3bedd175c99 8459:0ae07748dbe8
95 self.mixedLanguageCheckBox.setChecked( 95 self.mixedLanguageCheckBox.setChecked(
96 self.project.pdata["MIXEDLANGUAGE"]) 96 self.project.pdata["MIXEDLANGUAGE"])
97 curIndex = self.projectTypeComboBox.findData( 97 curIndex = self.projectTypeComboBox.findData(
98 self.project.pdata["PROJECTTYPE"]) 98 self.project.pdata["PROJECTTYPE"])
99 if curIndex == -1: 99 if curIndex == -1:
100 curIndex = self.projectTypeComboBox.findData("PyQt5") 100 curIndex = self.projectTypeComboBox.findData("PyQt6")
101 self.projectTypeComboBox.setCurrentIndex(curIndex) 101 self.projectTypeComboBox.setCurrentIndex(curIndex)
102 self.dirPicker.setText(self.project.ppath) 102 self.dirPicker.setText(self.project.ppath)
103 self.versionEdit.setText(self.project.pdata["VERSION"]) 103 self.versionEdit.setText(self.project.pdata["VERSION"])
104 self.mainscriptPicker.setText(self.project.pdata["MAINSCRIPT"]) 104 self.mainscriptPicker.setText(self.project.pdata["MAINSCRIPT"])
105 self.authorEdit.setText(self.project.pdata["AUTHOR"]) 105 self.authorEdit.setText(self.project.pdata["AUTHOR"])
135 self.docstringStyleComboBox.setCurrentIndex(cindex) 135 self.docstringStyleComboBox.setCurrentIndex(cindex)
136 else: 136 else:
137 self.languageComboBox.setCurrentIndex( 137 self.languageComboBox.setCurrentIndex(
138 self.languageComboBox.findText("Python3")) 138 self.languageComboBox.findText("Python3"))
139 self.projectTypeComboBox.setCurrentIndex( 139 self.projectTypeComboBox.setCurrentIndex(
140 self.projectTypeComboBox.findData("PyQt5")) 140 self.projectTypeComboBox.findData("PyQt6"))
141 self.dirPicker.setText(self.__initPaths[0]) 141 self.dirPicker.setText(self.__initPaths[0])
142 self.versionEdit.setText('0.1') 142 self.versionEdit.setText('0.1')
143 self.vcsLabel.hide() 143 self.vcsLabel.hide()
144 self.vcsInfoButton.hide() 144 self.vcsInfoButton.hide()
145 if not self.project.vcsSoftwareAvailable(): 145 if not self.project.vcsSoftwareAvailable():

eric ide

mercurial