burme-coder-max / examples /demo_thanking.py
amkyawdev's picture
Upload folder using huggingface_hub
a7d7463 verified
Raw
History Blame Contribute Delete
2.36 kB
"""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()