SqlBrowser/SqlBrowser.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2409
df3820f08247
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the SQL Browser main window. 7 Module implementing the SQL Browser main window.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import QTimer, QUrl 12 from PyQt4.QtCore import QTimer, QUrl
11 from PyQt4.QtGui import QKeySequence, qApp 13 from PyQt4.QtGui import QKeySequence, qApp
12 from PyQt4.QtSql import QSqlError, QSqlDatabase 14 from PyQt4.QtSql import QSqlError, QSqlDatabase
13 15
30 Constructor 32 Constructor
31 33
32 @param connections list of database connections to add (list of strings) 34 @param connections list of database connections to add (list of strings)
33 @param reference to the parent widget (QWidget) 35 @param reference to the parent widget (QWidget)
34 """ 36 """
35 super().__init__(parent) 37 super(SqlBrowser, self).__init__(parent)
36 self.setObjectName("SqlBrowser") 38 self.setObjectName("SqlBrowser")
37 39
38 self.setWindowTitle(self.trUtf8("SQL Browser")) 40 self.setWindowTitle(self.trUtf8("SQL Browser"))
39 self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) 41 self.setWindowIcon(UI.PixmapCache.getIcon("eric.png"))
40 42

eric ide

mercurial