import sys
from PyQt4 import QtGui
from LoginDialog import LoginDialog

if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)
    
    loginDialog = LoginDialog()
    
    if loginDialog.exec_():
        print "Retrieve username and password from loginDialog instance and proceed with login"
    else:
        print "The user either cancelled or killed the login dialog"

    app.exec_()