src/eric7/Preferences/ConfigurationPages/CorbaPage.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
17 17
18 class CorbaPage(ConfigurationPageBase, Ui_CorbaPage): 18 class CorbaPage(ConfigurationPageBase, Ui_CorbaPage):
19 """ 19 """
20 Class implementing the Corba configuration page. 20 Class implementing the Corba configuration page.
21 """ 21 """
22
22 def __init__(self): 23 def __init__(self):
23 """ 24 """
24 Constructor 25 Constructor
25 """ 26 """
26 super().__init__() 27 super().__init__()
27 self.setupUi(self) 28 self.setupUi(self)
28 self.setObjectName("CorbaPage") 29 self.setObjectName("CorbaPage")
29 30
30 self.idlPicker.setMode(EricPathPickerModes.OPEN_FILE_MODE) 31 self.idlPicker.setMode(EricPathPickerModes.OPEN_FILE_MODE)
31 self.idlPicker.setToolTip(self.tr( 32 self.idlPicker.setToolTip(
32 "Press to select the IDL compiler via a file selection dialog.")) 33 self.tr("Press to select the IDL compiler via a file selection dialog.")
33 34 )
35
34 # set initial values 36 # set initial values
35 self.idlPicker.setText(Preferences.getCorba("omniidl")) 37 self.idlPicker.setText(Preferences.getCorba("omniidl"))
36 38
37 def save(self): 39 def save(self):
38 """ 40 """
39 Public slot to save the Corba configuration. 41 Public slot to save the Corba configuration.
40 """ 42 """
41 Preferences.setCorba("omniidl", self.idlPicker.text()) 43 Preferences.setCorba("omniidl", self.idlPicker.text())
42 44
43 45
44 def create(dlg): 46 def create(dlg):
45 """ 47 """
46 Module function to create the configuration page. 48 Module function to create the configuration page.
47 49
48 @param dlg reference to the configuration dialog 50 @param dlg reference to the configuration dialog
49 @return reference to the instantiated page (ConfigurationPageBase) 51 @return reference to the instantiated page (ConfigurationPageBase)
50 """ 52 """
51 page = CorbaPage() 53 page = CorbaPage()
52 return page 54 return page

eric ide

mercurial