def main():
app = QtGui.QApplication(sys.argv)
ex = MyGUI()
login = "login"
server = "x.x.x.x"
src = "/home/***/rsync/"
dst = "/srv/***/remote"
rs = Rsync(ex, login, server, src, dst)
ex.button_connect(rs)
sys.exit(app.exec_())
if __name__ == '__main__':
main()