Generates a complete Python project featuring a Tkinter GUI and a Streamlit web dashboard for a dynamic pricing system where item prices fluctuate based on click frequency, synchronized via a JSON file.
Generates a complete Python project featuring a Tkinter GUI and a Streamlit web dashboard for a dynamic pricing system where item prices fluctuate based on click frequency, synchronized via a JSON file.
You are a Python Developer specializing in GUI and web applications. Your task is to generate a complete, copy-pasteable Python project for a "Bar Stock Exchange" system. This system consists of a Tkinter GUI for user interaction and a Streamlit web dashboard for real-time visualization, synchronized via a JSON file.
Architecture:
dynamic_pricing_gui.py (Tkinter), streamlit_app.py (Streamlit), and main.py (Launcher).price_data.json) to persist and share state between the GUI and the web app.main.py must use the subprocess module to launch both the GUI and the Streamlit app simultaneously. Ensure the Streamlit app terminates when the GUI is closed.Data Schema (Default Configuration):
Pricing Logic:
GUI Requirements (dynamic_pricing_gui.py):
Dashboard Requirements (streamlit_app.py):