def __init__(self): 
     QtGui.QDialog.__init__(self) 
     # Set up the user interface from Designer. 
     self.setupUi(self) 
     dblist = conn.listDatabases()
     self.comboBox.addItems(dblist.keys())
     if len(dblist.keys()) > 0:
         self.updateUIMode()
     QtCore.QObject.connect(self.comboBox, QtCore.SIGNAL("currentIndexChanged(int)"), self.listTables)
     QtCore.QObject.connect(self.tableWidget, QtCore.SIGNAL("cellClicked(int,int)"), self.copyTableName)
     QtCore.QObject.connect(self.tableWidget, QtCore.SIGNAL("cellClicked(int,int)"), self.listRIds)
     QtCore.QObject.connect(self.modeComboBox, QtCore.SIGNAL("currentIndexChanged(int)"), self.updateUIMode)
     QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), self.run)
 def __init__(self):
     QtGui.QDialog.__init__(self)
     # Set up the user interface from Designer.
     self.setupUi(self)
     dblist = conn.listDatabases()
     self.comboBox.addItems(dblist.keys())
     if len(dblist.keys()) > 0:
         self.updateUIMode()
     QtCore.QObject.connect(self.comboBox,
                            QtCore.SIGNAL("currentIndexChanged(int)"),
                            self.listTables)
     QtCore.QObject.connect(self.tableWidget,
                            QtCore.SIGNAL("cellClicked(int,int)"),
                            self.copyTableName)
     QtCore.QObject.connect(self.tableWidget,
                            QtCore.SIGNAL("cellClicked(int,int)"),
                            self.listRIds)
     QtCore.QObject.connect(self.modeComboBox,
                            QtCore.SIGNAL("currentIndexChanged(int)"),
                            self.updateUIMode)
     QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"),
                            self.run)
 def listDatabases(self):
     self.comboBox.clear()
     dblist = conn.listDatabases()
     self.comboBox.addItems(dblist.keys())
Beispiel #4
0
 def listDatabases(self):
     self.comboBox.clear()
     dblist = conn.listDatabases()
     self.comboBox.addItems(dblist.keys())