InterfacePage: added option to enable/disable the PyPI Package Manager widget. pypi

Sat, 23 Feb 2019 15:02:24 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 23 Feb 2019 15:02:24 +0100
branch
pypi
changeset 6803
4a6257252525
parent 6802
864d10ecf3a4
child 6804
dc20bde4af90

InterfacePage: added option to enable/disable the PyPI Package Manager widget.

Preferences/ConfigurationPages/InterfacePage.py file | annotate | diff | comparison | revisions
Preferences/ConfigurationPages/InterfacePage.ui file | annotate | diff | comparison | revisions
--- a/Preferences/ConfigurationPages/InterfacePage.py	Sat Feb 23 13:23:09 2019 +0100
+++ b/Preferences/ConfigurationPages/InterfacePage.py	Sat Feb 23 15:02:24 2019 +0100
@@ -102,7 +102,8 @@
         # right side
         self.codeDocumentationViewerCheckBox.setChecked(
             Preferences.getUI("ShowCodeDocumentationViewer"))
-        # TODO: add entry for "ShowPyPIPackageManager"
+        self.pypiCheckBox.setChecked(
+            Preferences.getUI("ShowPyPIPackageManager"))
         self.condaCheckBox.setChecked(
             Preferences.getUI("ShowCondaPackageManager"))
         self.cooperationCheckBox.setChecked(
@@ -202,7 +203,9 @@
         Preferences.setUI(
             "ShowCodeDocumentationViewer",
             self.codeDocumentationViewerCheckBox.isChecked())
-        # TODO: add entry for "ShowPyPIPackageManager"
+        Preferences.setUI(
+            "ShowPyPIPackageManager",
+            self.pypiCheckBox.isChecked())
         Preferences.setUI(
             "ShowCondaPackageManager",
             self.condaCheckBox.isChecked())
--- a/Preferences/ConfigurationPages/InterfacePage.ui	Sat Feb 23 13:23:09 2019 +0100
+++ b/Preferences/ConfigurationPages/InterfacePage.ui	Sat Feb 23 15:02:24 2019 +0100
@@ -516,7 +516,17 @@
            </property>
           </widget>
          </item>
-         <item row="0" column="1">
+         <item row="1" column="0">
+          <widget class="QCheckBox" name="pypiCheckBox">
+           <property name="toolTip">
+            <string>Select to activate the PyPI package manager widget</string>
+           </property>
+           <property name="text">
+            <string>PyPI Package Manager</string>
+           </property>
+          </widget>
+         </item>
+         <item row="1" column="1">
           <widget class="QCheckBox" name="condaCheckBox">
            <property name="toolTip">
             <string>Select to activate the conda package manager widget</string>
@@ -526,7 +536,7 @@
            </property>
           </widget>
          </item>
-         <item row="1" column="0">
+         <item row="2" column="0">
           <widget class="QCheckBox" name="cooperationCheckBox">
            <property name="toolTip">
             <string>Select to activate the Cooperation widget</string>
@@ -536,7 +546,7 @@
            </property>
           </widget>
          </item>
-         <item row="1" column="1">
+         <item row="2" column="1">
           <widget class="QCheckBox" name="ircCheckBox">
            <property name="toolTip">
             <string>Select to activate the IRC widget</string>
@@ -642,6 +652,7 @@
   <tabstop>fileBrowserCheckBox</tabstop>
   <tabstop>symbolsCheckBox</tabstop>
   <tabstop>codeDocumentationViewerCheckBox</tabstop>
+  <tabstop>pypiCheckBox</tabstop>
   <tabstop>condaCheckBox</tabstop>
   <tabstop>cooperationCheckBox</tabstop>
   <tabstop>ircCheckBox</tabstop>

eric ide

mercurial