def createWindow(self): createUserForm = CAddUserForm(self) createUserForm.setModal(True) createUserForm.exec_() self.ui.btnSearch.click()
def editWindow(self): addUserForm = CAddUserForm(self, self.clientId) addUserForm.setModal(True) addUserForm.exec_() self.ui.btnSearch.click()