class BulkVectorExportDialog(QtGui.QDialog):
    def __init__(self):
        QtGui.QDialog.__init__(self)
        # Set up the user interface from Designer.
        self.ui = Ui_BulkVectorExportDialog()
        self.ui.setupUi(self)
        # dir button push event
        QtCore.QObject.connect(self.ui.dirButton, QtCore.SIGNAL('clicked()'), self.getDir)
        self.unsupportedDriverList = ['Memory', 'PostgreSQL', 'MySQL', 'ODBC', \
            'S57']

    def getDir(self):
        dirName = str(QtGui.QFileDialog.getExistingDirectory(self, "Select Directory"))
        self.ui.dirEdit.setText(dirName)
 def __init__(self):
     QtGui.QDialog.__init__(self)
     # Set up the user interface from Designer.
     self.ui = Ui_BulkVectorExportDialog()
     self.ui.setupUi(self)
     # dir button push event
     QtCore.QObject.connect(self.ui.dirButton, QtCore.SIGNAL('clicked()'), self.getDir)
     self.unsupportedDriverList = ['Memory', 'PostgreSQL', 'MySQL', 'ODBC', \
         'S57']