"""Demo: Thanking System This script demonstrates the thanking system in Burme-Coder-Max. """ import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent.parent / "src")) from ui.thanking import ThankYou, Appreciation, CreditDisplay from ui.thanking.thank_you import quick_thank from ui.thanking.appreciation import show_custom_appreciation def demo_basic_thanks(): """Demonstrate basic thank you messages.""" print("\nšŸ™ Basic Thank You Messages") print("=" * 40) ThankYou.show() ThankYou.show_animation() ThankYou.show_with_emoji("⭐") def demo_emoji_variations(): """Demonstrate different emoji options.""" print("\n⭐ Emoji Variations") print("=" * 40) emojis = ["šŸ™", "šŸ’–", "šŸŽ‰", "✨", "⭐", "🌟", "šŸ’«"] for emoji in emojis: ThankYou.show_with_emoji(emoji) print() def demo_custom_appreciation(): """Demonstrate custom appreciation.""" print("\nšŸ† Custom Appreciation") print("=" * 40) show_custom_appreciation( title="Learning Milestone", message="Congratulations on completing Python basics!", badges=["Python Novice", "First Function", "Loop Master"], ) def demo_detailed_appreciation(): """Demonstrate detailed appreciation.""" print("\nšŸ“ Detailed Appreciation") print("=" * 40) Appreciation.show("Python decorators") def demo_credit_display(): """Demonstrate credits.""" print("\nšŸ“œ Credits Display") print("=" * 40) CreditDisplay.show_simple() def demo_quick_thank(): """Demonstrate quick thank.""" print("\n⚔ Quick Thank") print("=" * 40) quick_thank() def main(): """Run all thanking demos.""" print() print("ā•”" + "═" * 48 + "ā•—") print("ā•‘" + " šŸ™ THANKING SYSTEM DEMO ".center(48) + "ā•‘") print("ā•š" + "═" * 48 + "ā•") demos = [ ("Basic Thanks", demo_basic_thanks), ("Emoji Variations", demo_emoji_variations), ("Custom Appreciation", demo_custom_appreciation), ("Detailed Appreciation", demo_detailed_appreciation), ("Credits", demo_credit_display), ("Quick Thank", demo_quick_thank), ] for name, demo_func in demos: input(f"\n[Press Enter for '{name}' demo]") demo_func() if __name__ == "__main__": main()