src/eric7/Preferences/ConfigurationPages/NetworkPage.py

branch
eric7
changeset 10428
a071d4065202
parent 10331
c1a2ff7e3575
child 10439
21c28b0f9e41
equal deleted inserted replaced
10427:3733e2b23cf7 10428:a071d4065202
25 def __init__(self, configDialog): 25 def __init__(self, configDialog):
26 """ 26 """
27 Constructor 27 Constructor
28 28
29 @param configDialog reference to the configuration dialog 29 @param configDialog reference to the configuration dialog
30 (ConfigurationDialog) 30 @type ConfigurationDialog
31 """ 31 """
32 super().__init__() 32 super().__init__()
33 self.setupUi(self) 33 self.setupUi(self)
34 self.setObjectName("NetworkPage") 34 self.setObjectName("NetworkPage")
35 35
208 @pyqtSlot(int) 208 @pyqtSlot(int)
209 def on_ftpProxyTypeCombo_currentIndexChanged(self, index): 209 def on_ftpProxyTypeCombo_currentIndexChanged(self, index):
210 """ 210 """
211 Private slot handling the selection of a proxy type. 211 Private slot handling the selection of a proxy type.
212 212
213 @param index index of the selected item (integer) 213 @param index index of the selected item
214 @type int
214 """ 215 """
215 proxyType = EricFtpProxyType(self.ftpProxyTypeCombo.itemData(index)) 216 proxyType = EricFtpProxyType(self.ftpProxyTypeCombo.itemData(index))
216 self.ftpProxyHostEdit.setEnabled(proxyType != EricFtpProxyType.NO_PROXY) 217 self.ftpProxyHostEdit.setEnabled(proxyType != EricFtpProxyType.NO_PROXY)
217 self.ftpProxyPortSpin.setEnabled(proxyType != EricFtpProxyType.NO_PROXY) 218 self.ftpProxyPortSpin.setEnabled(proxyType != EricFtpProxyType.NO_PROXY)
218 self.ftpProxyUserEdit.setEnabled( 219 self.ftpProxyUserEdit.setEnabled(
232 def create(dlg): 233 def create(dlg):
233 """ 234 """
234 Module function to create the configuration page. 235 Module function to create the configuration page.
235 236
236 @param dlg reference to the configuration dialog 237 @param dlg reference to the configuration dialog
237 @return reference to the instantiated page (ConfigurationPageBase) 238 @type ConfigurationDialog
239 @return reference to the instantiated page
240 @rtype ConfigurationPageBase
238 """ 241 """
239 page = NetworkPage(dlg) 242 page = NetworkPage(dlg)
240 return page 243 return page

eric ide

mercurial