src/eric7/SqlBrowser/SqlConnectionDialog.py

branch
eric7
changeset 10431
64157aeb0312
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10430:e440aaf179ce 10431:64157aeb0312
23 23
24 def __init__(self, parent=None): 24 def __init__(self, parent=None):
25 """ 25 """
26 Constructor 26 Constructor
27 27
28 @param parent reference to the parent widget (QWidget) 28 @param parent reference to the parent widget
29 @type QWidget
29 """ 30 """
30 super().__init__(parent) 31 super().__init__(parent)
31 self.setupUi(self) 32 self.setupUi(self)
32 33
33 self.databasePicker.setMode(EricPathPickerModes.OPEN_FILE_MODE) 34 self.databasePicker.setMode(EricPathPickerModes.OPEN_FILE_MODE)
83 @pyqtSlot(str) 84 @pyqtSlot(str)
84 def on_databasePicker_textChanged(self, txt): 85 def on_databasePicker_textChanged(self, txt):
85 """ 86 """
86 Private slot handling the change of the database name. 87 Private slot handling the change of the database name.
87 88
88 @param txt text of the edit (string) 89 @param txt text of the edit
90 @type str
89 """ 91 """
90 self.__updateDialog() 92 self.__updateDialog()
91 93
92 def getData(self): 94 def getData(self):
93 """ 95 """
94 Public method to retrieve the connection data. 96 Public method to retrieve the connection data.
95 97
96 @return tuple giving the driver name (string), the database name 98 @return tuple giving the driver name, the database name, the user name,
97 (string), the user name (string), the password (string), the 99 the password, the host name and the port
98 host name (string) and the port (integer) 100 @rtype tuple of (str, str, str, str, str, int)
99 """ 101 """
100 return ( 102 return (
101 self.driverCombo.currentText(), 103 self.driverCombo.currentText(),
102 self.databasePicker.text(), 104 self.databasePicker.text(),
103 self.usernameEdit.text(), 105 self.usernameEdit.text(),

eric ide

mercurial