first round of development
This commit is contained in:
parent
a014734a9d
commit
8df9fa61f3
8 changed files with 82 additions and 151 deletions
|
@ -1,77 +0,0 @@
|
|||
"""
|
||||
Plant Growth Graphics Demo Launcher
|
||||
Simple version focusing on visual capabilities
|
||||
"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
# Add the current directory to the Python path
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
sys.path.insert(0, current_dir)
|
||||
|
||||
def check_requirements():
|
||||
"""Check if required packages are available"""
|
||||
required_packages = {
|
||||
'tkinter': 'tkinter',
|
||||
'matplotlib': 'matplotlib',
|
||||
'seaborn': 'seaborn',
|
||||
'numpy': 'numpy',
|
||||
'PIL': 'Pillow'
|
||||
}
|
||||
|
||||
missing_packages = []
|
||||
|
||||
for package, pip_name in required_packages.items():
|
||||
try:
|
||||
__import__(package)
|
||||
print(f"✅ {package} - OK")
|
||||
except ImportError:
|
||||
print(f"❌ {package} - Missing")
|
||||
missing_packages.append(pip_name)
|
||||
|
||||
if missing_packages:
|
||||
print(f"\n📦 Install missing packages with:")
|
||||
print(f"pip install {' '.join(missing_packages)}")
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
def main():
|
||||
print("🎨 Plant Growth Graphics Demo")
|
||||
print("=" * 40)
|
||||
print("Checking requirements...")
|
||||
|
||||
if not check_requirements():
|
||||
print("\n❌ Please install missing packages first!")
|
||||
return
|
||||
|
||||
print("\n🚀 Starting graphics demo...")
|
||||
|
||||
try:
|
||||
from graphics_demo import PlantGrowthGraphicsDemo
|
||||
import tkinter as tk
|
||||
|
||||
root = tk.Tk()
|
||||
app = PlantGrowthGraphicsDemo(root)
|
||||
|
||||
print("✅ Graphics demo ready!")
|
||||
print("\n🎮 Demo Features:")
|
||||
print(" • Real-time parameter visualization")
|
||||
print(" • Interactive plant growth charts")
|
||||
print(" • Dynamic plant evolution images")
|
||||
print(" • Parameter heatmaps and 3D plots")
|
||||
print(" • Live health indicators")
|
||||
print(" • Animated growth sequences")
|
||||
print("\n🎛️ Try changing parameters with the sliders!")
|
||||
print("🎬 Click 'Animate Growth' for dynamic effects!")
|
||||
|
||||
root.mainloop()
|
||||
|
||||
except Exception as e:
|
||||
print(f"❌ Error starting demo: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Loading…
Add table
Add a link
Reference in a new issue