eric6/Preferences/ConfigurationPages/QtPage.py

changeset 8234
fcb6b4b96274
parent 8218
7c09585bd960
child 8273
698ae46f40a4
equal deleted inserted replaced
8233:bad78a592cc2 8234:fcb6b4b96274
162 @param envKey preferences key for the environment 162 @param envKey preferences key for the environment
163 @type str 163 @type str
164 @param initial flag indicating an initial population 164 @param initial flag indicating an initial population
165 @type bool 165 @type bool
166 """ 166 """
167 if initial: 167 venvName = (Preferences.getQt(envKey) if initial
168 venvName = Preferences.getQt(envKey) 168 else comboBox.currentText())
169 else:
170 venvName = comboBox.currentText()
171 169
172 comboBox.clear() 170 comboBox.clear()
173 comboBox.addItems( 171 comboBox.addItems(
174 [""] + 172 [""] +
175 sorted(self.__virtualenvManager.getVirtualenvNames()) 173 sorted(self.__virtualenvManager.getVirtualenvNames())

eric ide

mercurial