Get your professional GUI framework up and running in minutes
---
---
```bash
# Install from .whl file
pip install bravura-1.0.0-py3-none-any.whl
# Or install from extracted folder
pip install .
```
```python
python -c "from bravura import get_audio_analyzer_framework; print('โ Bravura installed successfully!')"
```
# For loading screen music support
pip install pygame
# For advanced image handling (optional)
pip install Pillow
# test_bravura.py
from bravura import get_audio_analyzer_framework
# Get the framework class and create instance
AppClass = get_audio_analyzer_framework()
app = AppClass()
# Run your application
app.run()
๐ Success! You should see a professional GUI framework window open.
---
Install Bravura as a Python package:
# Install from wheel file
pip install bravura-1.0.0-py3-none-any.whl
# Or install with optional dependencies
pip install bravura-1.0.0-py3-none-any.whl pygame Pillow
Project structure:
YourProject/
โโโ main.py # Your main application
โโโ config.py # Optional configuration
โโโ your_modules/ # Your application code
# Create virtual environment
python -m venv myproject_env
cd myproject_env
# Activate environment
# Windows:
Scripts\activate
# macOS/Linux:
source bin/activate
# Install Bravura
pip install path/to/bravura-1.0.0-py3-none-any.whl
# Install optional dependencies
pip install pygame Pillow
# Test installation
python -c "from bravura import get_audio_analyzer_framework; print('โ
Ready!')"
For development or customization:
# Extract package and install in editable mode
cd path/to/extracted/bravura
pip install -e .
# This allows you to modify the source code
# and changes will be reflected immediately
---
Create a config.py file:
# config.py
GUI_CONFIG = {
'window_title': 'My Professional Application',
'window_size': '1000x630',
'theme': 'professional',
'enable_music': True,
'log_level': 'INFO'
}
# main.py
from bravura import get_audio_analyzer_framework
from config import GUI_CONFIG
AppClass = get_audio_analyzer_framework()
app = AppClass()
app.root.title(GUI_CONFIG['window_title'])
app.run()
---
# test_bravura.py
from bravura import get_audio_analyzer_framework
print("Testing Bravura installation...")
# Get the framework class
AppClass = get_audio_analyzer_framework()
print("โ
Framework imported successfully")
# Create instance
app = AppClass()
print("โ
App instance created successfully")
# Optionally run the GUI (will open a window)
# app.run()
print("๐ Bravura is installed and working!")
# test_dependencies.py
import sys
def check_dependencies():
print("๐ Checking Bravura dependencies...")
# Check Python version
print(f"Python version: {sys.version}")
if sys.version_info < (3, 7):
print("โ Python 3.7+ required")
return False
print("โ
Python version OK")
# Check tkinter
try:
import tkinter as tk
print("โ
tkinter available")
except ImportError:
print("โ tkinter not available")
return False
# Check optional dependencies
try:
import pygame
print("โ
pygame available (music support enabled)")
except ImportError:
print("โ ๏ธ pygame not installed (music support disabled)")
try:
from PIL import Image
print("โ
Pillow available (advanced image support)")
except ImportError:
print("โ ๏ธ Pillow not installed (basic image support only)")
print("๐ Installation verification complete!")
return True
if __name__ == "__main__":
check_dependencies()
---
Solution:
# Ensure Bravura is properly installed
pip install path/to/bravura-1.0.0-py3-none-any.whl
# Verify installation
python -c "import bravura; print('โ
Bravura found')"
# If in virtual environment, ensure it's activated
# Windows: Scripts\activate
# macOS/Linux: source bin/activate
Solution (Linux):
# Install tkinter development package
sudo apt-get install python3-tk
# Or for older systems
sudo apt-get install python-tk
Solution:
# Install pygame
pip install pygame
# If still not working, check audio system
python -c "import pygame; pygame.mixer.init(); print('Audio system OK')"
Cause: Initial framework initialization
Solution: This is normal for first-time initialization. Subsequent startups will be faster.
# Minimal startup (no demo features)
from bravura import get_audio_analyzer_framework
AppClass = get_audio_analyzer_framework()
app = AppClass()
app.run()
Solution:
# Add to your main.py before creating GUI
import ctypes
try:
ctypes.windll.shcore.SetProcessDpiAwareness(1)
except:
pass # Ignore if not on Windows
Solution:
chmod +x *.py---
# Install PyInstaller
pip install pyinstaller
# Create executable
pyinstaller --onefile --windowed main.py
# Include additional files if needed
pyinstaller --onefile --windowed --add-data "components;components" main.py
# setup.py for cx_Freeze
from cx_Freeze import setup, Executable
setup(
name="My Professional App",
version="1.0",
description="Built with Bravura",
executables=[Executable("main.py", base="Win32GUI")]
)
---
---
Please include:
python --version)---
Congratulations! Your Bravura is now installed and ready for professional development.
Bravura Demos and Templates/ directoryHappy coding! ๐ฏ
---
ยฉ 2025 Wigley Studios LLC. Professional installation support included.