def showNewMail(self):
    newMailView = SenderWindow()
    newMailModel = SenderModel()
    self.delegate.reset()
    self.delegate.senderView = newMailView
    self.delegate.senderModel = newMailModel
    newMailView.delegate = self.delegate
    newMailModel.delegate = self.delegate
    newMailView.set_actions()
    self.centralWidget().changeRightWidget(newMailView)
def showNewMail(self):
    newMailView = SenderWindow()
    newMailModel = SenderModel()
    self.delegate.reset()
    self.delegate.senderView = newMailView
    self.delegate.senderModel = newMailModel
    newMailView.delegate = self.delegate
    newMailModel.delegate = self.delegate
    newMailView.set_actions()
    self.centralWidget().changeRightWidget(newMailView)