SqlBrowser/SqlConnectionWidget.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 2847
1843ef6e2656
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a widget showing the SQL connections. 7 Module implementing a widget showing the SQL connections.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import pyqtSignal, Qt, qVersion 12 from PyQt4.QtCore import pyqtSignal, Qt, qVersion
11 from PyQt4.QtGui import QWidget, QHeaderView, QTreeWidget, QVBoxLayout, \ 13 from PyQt4.QtGui import QWidget, QHeaderView, QTreeWidget, QVBoxLayout, \
12 QTreeWidgetItem, QAction 14 QTreeWidgetItem, QAction
13 from PyQt4.QtSql import QSqlDatabase 15 from PyQt4.QtSql import QSqlDatabase
29 """ 31 """
30 Constructor 32 Constructor
31 33
32 @param parent reference to the parent widget (QWidget) 34 @param parent reference to the parent widget (QWidget)
33 """ 35 """
34 super().__init__(parent) 36 super(SqlConnectionWidget, self).__init__(parent)
35 37
36 layout = QVBoxLayout(self) 38 layout = QVBoxLayout(self)
37 layout.setMargin(0) 39 layout.setMargin(0)
38 40
39 self.__connectionTree = QTreeWidget(self) 41 self.__connectionTree = QTreeWidget(self)

eric ide

mercurial