115 menu.addAction(self.tr("Show Bundles"), self.__showBundles) |
115 menu.addAction(self.tr("Show Bundles"), self.__showBundles) |
116 menu.addAction(self.tr("Show Bundles with Modules"), self.__showBundlesModules) |
116 menu.addAction(self.tr("Show Bundles with Modules"), self.__showBundlesModules) |
117 menu.addSeparator() |
117 menu.addSeparator() |
118 menu.addAction(self.tr("Add Bundle"), self.__addBundle) |
118 menu.addAction(self.tr("Add Bundle"), self.__addBundle) |
119 menu.addAction(self.tr("Remove Bundles"), self.__removeBundle) |
119 menu.addAction(self.tr("Remove Bundles"), self.__removeBundle) |
|
120 menu.addSeparator() |
|
121 menu.addAction(self.tr("Show Local Cache Path"), self.__showCachePath) |
120 |
122 |
121 @pyqtSlot() |
123 @pyqtSlot() |
122 def __aboutCircup(self): |
124 def __aboutCircup(self): |
123 """ |
125 """ |
124 Private slot to show some info about 'circup'. |
126 Private slot to show some info about 'circup'. |
653 circup.CPY_VERSION = cpyVersion |
655 circup.CPY_VERSION = cpyVersion |
654 |
656 |
655 dlg = RequirementsDialog(devicePath=devicePath) |
657 dlg = RequirementsDialog(devicePath=devicePath) |
656 dlg.exec() |
658 dlg.exec() |
657 |
659 |
|
660 @pyqtSlot() |
|
661 def __showCachePath(self): |
|
662 """ |
|
663 Private slot to show the path used by 'circup' to store the downloaded bundles. |
|
664 """ |
|
665 EricMessageBox.information( |
|
666 None, |
|
667 self.tr("Show Local Cache Path"), |
|
668 self.tr( |
|
669 "<p><b>circup</b> stores the downloaded CircuitPython bundles in this" |
|
670 " directory.</p><p>{0}</p>" |
|
671 ).format(circup.DATA_DIR), |
|
672 ) |
|
673 |
|
674 |
658 |
675 |
659 def isCircupAvailable(): |
676 def isCircupAvailable(): |
660 """ |
677 """ |
661 Function to check for the availability of 'circup'. |
678 Function to check for the availability of 'circup'. |
662 |
679 |