eric7/UI/UserInterface.py

branch
eric7
changeset 8820
149f941d072e
parent 8819
982fb074be98
child 8881
54e42bc2437a
equal deleted inserted replaced
8819:982fb074be98 8820:149f941d072e
2840 self.prefImportAct.triggered.connect(self.__importPreferences) 2840 self.prefImportAct.triggered.connect(self.__importPreferences)
2841 self.actions.append(self.prefImportAct) 2841 self.actions.append(self.prefImportAct)
2842 2842
2843 self.themeExportAct = EricAction( 2843 self.themeExportAct = EricAction(
2844 self.tr('Export Theme'), 2844 self.tr('Export Theme'),
2845 ## UI.PixmapCache.getIcon("configureExport"), 2845 UI.PixmapCache.getIcon("themeExport"),
2846 self.tr('Export Theme...'), 2846 self.tr('Export Theme...'),
2847 0, 0, self, 'export_theme') 2847 0, 0, self, 'export_theme')
2848 self.themeExportAct.setStatusTip(self.tr( 2848 self.themeExportAct.setStatusTip(self.tr(
2849 'Export the current theme')) 2849 'Export the current theme'))
2850 self.themeExportAct.setWhatsThis(self.tr( 2850 self.themeExportAct.setWhatsThis(self.tr(
2854 self.themeExportAct.triggered.connect(self.__exportTheme) 2854 self.themeExportAct.triggered.connect(self.__exportTheme)
2855 self.actions.append(self.themeExportAct) 2855 self.actions.append(self.themeExportAct)
2856 2856
2857 self.themeImportAct = EricAction( 2857 self.themeImportAct = EricAction(
2858 self.tr('Import Theme'), 2858 self.tr('Import Theme'),
2859 ## UI.PixmapCache.getIcon("configureImport"), 2859 UI.PixmapCache.getIcon("themeImport"),
2860 self.tr('Import Theme...'), 2860 self.tr('Import Theme...'),
2861 0, 0, self, 'import_theme') 2861 0, 0, self, 'import_theme')
2862 self.themeImportAct.setStatusTip(self.tr( 2862 self.themeImportAct.setStatusTip(self.tr(
2863 'Import a previously exported theme')) 2863 'Import a previously exported theme'))
2864 self.themeImportAct.setWhatsThis(self.tr( 2864 self.themeImportAct.setWhatsThis(self.tr(
6481 def __importTheme(self): 6481 def __importTheme(self):
6482 """ 6482 """
6483 Private slot to import a previously exported theme. 6483 Private slot to import a previously exported theme.
6484 """ 6484 """
6485 from Preferences.ThemeManager import ThemeManager 6485 from Preferences.ThemeManager import ThemeManager
6486 ThemeManager().importTheme() 6486 if ThemeManager().importTheme():
6487 self.__preferencesChanged() 6487 self.__preferencesChanged()
6488 6488
6489 @pyqtSlot() 6489 @pyqtSlot()
6490 def __preferencesChanged(self): 6490 def __preferencesChanged(self):
6491 """ 6491 """
6492 Private slot to handle a change of the preferences. 6492 Private slot to handle a change of the preferences.

eric ide

mercurial