MainWindow connect self buttonConnectToDB SIGNAL clicked self instanti

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
MainWindow.connect(self.buttonConnectToDB, SIGNAL("clicked()"), self.instantiateManager)
def instantiateManager(self):
self.manager = Manager()
def getClientData(self):
name = self.txtClientName.toPlainText()
surname = self.txtClientSurname.toPlainText()
cell = self.txtClientCellphone.toPlainText()
address = self.txtClientAddress.toPlainText()
self.manager.create_new_client(name, surname, cell, address)