SqlBrowser/SqlConnectionDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 2791
a9577f248f04
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to enter the connection parameters. 7 Module implementing a dialog to enter the connection parameters.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import pyqtSlot 12 from PyQt4.QtCore import pyqtSlot
11 from PyQt4.QtGui import QDialog, QDialogButtonBox 13 from PyQt4.QtGui import QDialog, QDialogButtonBox
12 from PyQt4.QtSql import QSqlDatabase 14 from PyQt4.QtSql import QSqlDatabase
13 15
25 """ 27 """
26 def __init__(self, parent=None): 28 def __init__(self, parent=None):
27 """ 29 """
28 Constructor 30 Constructor
29 """ 31 """
30 super().__init__(parent) 32 super(SqlConnectionDialog, self).__init__(parent)
31 self.setupUi(self) 33 self.setupUi(self)
32 34
33 self.databaseFileCompleter = E5FileCompleter() 35 self.databaseFileCompleter = E5FileCompleter()
34 36
35 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) 37 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok)

eric ide

mercurial