SqlBrowser/SqlBrowser.py

changeset 5651
982465f8389c
parent 5389
9b1c800daff3
child 6048
82ad8ec9548c
equal deleted inserted replaced
5650:4c52f07c186e 5651:982465f8389c
26 26
27 class SqlBrowser(E5MainWindow): 27 class SqlBrowser(E5MainWindow):
28 """ 28 """
29 Class implementing the SQL Browser main window. 29 Class implementing the SQL Browser main window.
30 """ 30 """
31 def __init__(self, connections=[], parent=None): 31 def __init__(self, connections=None, parent=None):
32 """ 32 """
33 Constructor 33 Constructor
34 34
35 @param connections list of database connections to add 35 @param connections list of database connections to add
36 (list of strings) 36 (list of strings)
37 @param parent reference to the parent widget (QWidget) 37 @param parent reference to the parent widget (QWidget)
38 """ 38 """
39 super(SqlBrowser, self).__init__(parent) 39 super(SqlBrowser, self).__init__(parent)
40 self.setObjectName("SqlBrowser") 40 self.setObjectName("SqlBrowser")
41
42 if connections is None:
43 connections = []
41 44
42 self.setWindowTitle(self.tr("SQL Browser")) 45 self.setWindowTitle(self.tr("SQL Browser"))
43 self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) 46 self.setWindowIcon(UI.PixmapCache.getIcon("eric.png"))
44 47
45 self.setStyle(Preferences.getUI("Style"), 48 self.setStyle(Preferences.getUI("Style"),

eric ide

mercurial