eric7/Preferences/ConfigurationPages/ApplicationPage.py

branch
eric7
changeset 9170
46523f488d07
parent 8994
3bebd76dc6ea
equal deleted inserted replaced
9169:2d27173dff5f 9170:46523f488d07
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the Application configuration page. 7 Module implementing the Application configuration page.
8 """ 8 """
9
10 import multiprocessing
9 11
10 from .ConfigurationPageBase import ConfigurationPageBase 12 from .ConfigurationPageBase import ConfigurationPageBase
11 from .Ui_ApplicationPage import Ui_ApplicationPage 13 from .Ui_ApplicationPage import Ui_ApplicationPage
12 14
13 import Preferences 15 import Preferences
25 super().__init__() 27 super().__init__()
26 self.setupUi(self) 28 self.setupUi(self)
27 self.setObjectName("ApplicationPage") 29 self.setObjectName("ApplicationPage")
28 30
29 self.backgroundServicesLabel.setText(self.tr( 31 self.backgroundServicesLabel.setText(self.tr(
30 "eric is using background services for certain things like" 32 "<p>eric is using background services for certain things like"
31 " syntax checks or code style checks. Per default the number" 33 " syntax checks or code style checks. Per default the number"
32 " of processes to use for these checks is determined" 34 " of processes to use for these checks is determined"
33 " automatically based on the number of CPUs. Please note, that" 35 " automatically based on the number of CPUs. Please note, that"
34 " this is an advanced setting." 36 " this is an advanced setting.</p>"
35 )) 37 "<p>Available CPUs: <b>{0}</b></p>"
38 ).format(multiprocessing.cpu_count()))
36 39
37 self.msgSeverityComboBox.addItem(self.tr("Debug"), 0) 40 self.msgSeverityComboBox.addItem(self.tr("Debug"), 0)
38 self.msgSeverityComboBox.addItem(self.tr("Warning"), 1) 41 self.msgSeverityComboBox.addItem(self.tr("Warning"), 1)
39 self.msgSeverityComboBox.addItem(self.tr("Critical"), 2) 42 self.msgSeverityComboBox.addItem(self.tr("Critical"), 2)
40 self.msgSeverityComboBox.addItem(self.tr("Fatal Error"), 3) 43 self.msgSeverityComboBox.addItem(self.tr("Fatal Error"), 3)

eric ide

mercurial