Preferences/ConfigurationPages/PluginManagerPage.py

changeset 564
b3d966393ba9
parent 97
c4086afea02b
child 791
9ec2ac20e54e
equal deleted inserted replaced
563:e35d2cda9a74 564:b3d966393ba9
33 self.setObjectName("PluginManagerPage") 33 self.setObjectName("PluginManagerPage")
34 34
35 self.downloadDirCompleter = E5DirCompleter(self.downloadDirEdit) 35 self.downloadDirCompleter = E5DirCompleter(self.downloadDirEdit)
36 36
37 # set initial values 37 # set initial values
38 self.activateExternalPluginsCheckBox.setChecked(\ 38 self.activateExternalPluginsCheckBox.setChecked(
39 Preferences.getPluginManager("ActivateExternal")) 39 Preferences.getPluginManager("ActivateExternal"))
40 self.downloadDirEdit.setText(\ 40 self.downloadDirEdit.setText(
41 Preferences.getPluginManager("DownloadPath")) 41 Preferences.getPluginManager("DownloadPath"))
42 42
43 def save(self): 43 def save(self):
44 """ 44 """
45 Public slot to save the Viewmanager configuration. 45 Public slot to save the Viewmanager configuration.
52 @pyqtSlot() 52 @pyqtSlot()
53 def on_downloadDirButton_clicked(self): 53 def on_downloadDirButton_clicked(self):
54 """ 54 """
55 Private slot to handle the directory selection via dialog. 55 Private slot to handle the directory selection via dialog.
56 """ 56 """
57 directory = QFileDialog.getExistingDirectory(\ 57 directory = QFileDialog.getExistingDirectory(
58 self, 58 self,
59 self.trUtf8("Select plugins download directory"), 59 self.trUtf8("Select plugins download directory"),
60 self.downloadDirEdit.text(), 60 self.downloadDirEdit.text(),
61 QFileDialog.Options(QFileDialog.ShowDirsOnly)) 61 QFileDialog.Options(QFileDialog.ShowDirsOnly))
62 62

eric ide

mercurial