src/eric7/WebBrowser/Sync/SyncHostTypePage.py

branch
eric7
changeset 10436
f6881d10e995
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10435:c712d09cc839 10436:f6881d10e995
22 22
23 def __init__(self, parent=None): 23 def __init__(self, parent=None):
24 """ 24 """
25 Constructor 25 Constructor
26 26
27 @param parent reference to the parent widget (QWidget) 27 @param parent reference to the parent widget
28 @type QWidget
28 """ 29 """
29 super().__init__(parent) 30 super().__init__(parent)
30 self.setupUi(self) 31 self.setupUi(self)
31 32
32 if Preferences.getWebBrowser("SyncType") == SyncGlobals.SyncTypeFtp: 33 if Preferences.getWebBrowser("SyncType") == SyncGlobals.SyncTypeFtp:
38 39
39 def nextId(self): 40 def nextId(self):
40 """ 41 """
41 Public method returning the ID of the next wizard page. 42 Public method returning the ID of the next wizard page.
42 43
43 @return next wizard page ID (integer) 44 @return next wizard page ID
45 @rtype int
44 """ 46 """
45 # save the settings 47 # save the settings
46 if self.ftpRadioButton.isChecked(): 48 if self.ftpRadioButton.isChecked():
47 Preferences.setWebBrowser("SyncType", SyncGlobals.SyncTypeFtp) 49 Preferences.setWebBrowser("SyncType", SyncGlobals.SyncTypeFtp)
48 return SyncGlobals.PageFTPSettings 50 return SyncGlobals.PageFTPSettings

eric ide

mercurial