def delete(self):

        if tkinter.messagebox.askyesnocancel(
                "Excluir", "Você deseja excluir o seu Login ?"):
            login = LoginFuntionalities()
            login_deleted = login.delete_login(self.id_login)
            if login_deleted is not None:
                tkinter.messagebox.showinfo(
                    "OK", "O Login foi excluído com sucesso.")
                self.master.destroy()
                from Graphic_Interfaces.FormLogin import instance_form_login
                instance_form_login()
 def deactivate_login(self):
     if tkinter.messagebox.askyesnocancel(
             "Desativar", "Você Deseja Desativar o seu Login ?"):
         desactive_flag = 'N'
         if self.id_login is None or desactive_flag not in ('Y', 'N'):
             tkinter.messagebox.showwarning(
                 "Atenção",
                 "ID do Login está incorreto e com erro na flag.")
         else:
             login = LoginFuntionalities()
             login_deactived = login.deactivate_login(
                 self.id_login, desactive_flag)
             if login_deactived == "Desativado":
                 self.master.destroy()
                 from Graphic_Interfaces.FormLogin import instance_form_login
                 instance_form_login()
 def return_form_login(self):
     self.master.destroy()
     from Graphic_Interfaces.FormLogin import instance_form_login
     instance_form_login()
 def exit_menu(self):
     if tkinter.messagebox.askyesnocancel(
             "Sair", "Você Realmente Deseja Sair Da Aplicação ?"):
         self.master.destroy()
         from Graphic_Interfaces.FormLogin import instance_form_login
         instance_form_login()