Inherited from tkinter.simpledialog.Dialog

def apply(self):
        """Inherited from tkinter.simpledialog.Dialog"""
        user_type = self.rb_choice.get()
        if user_type == 'student' or user_type == 'tutor':
            self.result = user_type