SqlBrowser/SqlBrowser.py

changeset 539
87f9bce38a44
parent 500
c3abc7895a01
child 545
1538031b5175
equal deleted inserted replaced
538:7f1a56e80124 539:87f9bce38a44
10 from PyQt4.QtCore import * 10 from PyQt4.QtCore import *
11 from PyQt4.QtGui import * 11 from PyQt4.QtGui import *
12 from PyQt4.QtSql import QSqlError, QSqlDatabase 12 from PyQt4.QtSql import QSqlError, QSqlDatabase
13 13
14 from E5Gui.E5Action import E5Action 14 from E5Gui.E5Action import E5Action
15 from E5Gui import E5MessageBox
15 16
16 from .SqlBrowserWidget import SqlBrowserWidget 17 from .SqlBrowserWidget import SqlBrowserWidget
17 18
18 import UI.PixmapCache 19 import UI.PixmapCache
19 import UI.Config 20 import UI.Config
66 def __uiStartUp(self): 67 def __uiStartUp(self):
67 """ 68 """
68 Private slot to do some actions after the UI has started and the main loop is up. 69 Private slot to do some actions after the UI has started and the main loop is up.
69 """ 70 """
70 for warning in self.__warnings: 71 for warning in self.__warnings:
71 QMessageBox.warning(self, 72 E5MessageBox.warning(self,
72 self.trUtf8("SQL Browser startup problem"), 73 self.trUtf8("SQL Browser startup problem"),
73 warning) 74 warning)
74 75
75 if len(QSqlDatabase.connectionNames()) == 0: 76 if len(QSqlDatabase.connectionNames()) == 0:
76 self.__browser.addConnectionByDialog() 77 self.__browser.addConnectionByDialog()

eric ide

mercurial