10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 from .ConfigurationPageBase import ConfigurationPageBase |
12 from .ConfigurationPageBase import ConfigurationPageBase |
13 from .Ui_PipPage import Ui_PipPage |
13 from .Ui_PipPage import Ui_PipPage |
14 |
14 |
15 from PipInterface import DefaultPyPiUrl |
15 from PipInterface.Pip import Pip |
16 |
16 |
17 import Preferences |
17 import Preferences |
18 |
18 |
19 |
19 |
20 class PipPage(ConfigurationPageBase, Ui_PipPage): |
20 class PipPage(ConfigurationPageBase, Ui_PipPage): |
30 self.setObjectName("PipPage") |
30 self.setObjectName("PipPage") |
31 |
31 |
32 self.indexLabel.setText(self.tr( |
32 self.indexLabel.setText(self.tr( |
33 '<b>Note:</b> Leave empty to use the default index URL (' |
33 '<b>Note:</b> Leave empty to use the default index URL (' |
34 '<a href="{0}">{0}</a>).') |
34 '<a href="{0}">{0}</a>).') |
35 .format(DefaultPyPiUrl)) |
35 .format(Pip.DefaultPyPiUrl)) |
36 |
36 |
37 # set initial values |
37 # set initial values |
38 self.indexEdit.setText(Preferences.getPip("PipSearchIndex")) |
38 self.indexEdit.setText(Preferences.getPip("PipSearchIndex")) |
39 |
39 |
40 def save(self): |
40 def save(self): |