def create_warning_message(self):
        "Create warning message for permanent operations."
        options = {'title': 'Important Warning',
                   'icon': tkinter.messagebox.QUESTION,
                   'type': tkinter.messagebox.YESNO,
                   'message': '''\
You cannot undo these operations.
Are you sure you want to do this?'''}
        self.__warn = tkinter.messagebox.Message(self, **options)
Create warning message for permanent operations.
recipes/Python/577632_Directory_Pruner_1/recipe-577632.py