๐Ÿš€ Installation Guide - Bravura

Back to Documentation Hub

๐Ÿš€ Installation Guide - Bravura

Get your professional GUI framework up and running in minutes

---

๐Ÿ“‹ System Requirements

Required

Optional

---

โšก Quick Installation

Step 1: Install Bravura Package

  1. Download your purchased Bravura package
  2. Install using pip:

```bash

# Install from .whl file

pip install bravura-1.0.0-py3-none-any.whl

# Or install from extracted folder

pip install .

```

  1. Verify installation:

```python

python -c "from bravura import get_audio_analyzer_framework; print('โœ… Bravura installed successfully!')"

```

Step 2: Install Optional Dependencies (Recommended)


# For loading screen music support
pip install pygame

# For advanced image handling (optional)
pip install Pillow

Step 3: Test Installation


# 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.

---

๐Ÿ—๏ธ Project Setup Options

Option 1: pip Install (Recommended)

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

Option 2: Virtual Environment (Best Practice)


# 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!')"

Option 3: Development Install

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

---

๐Ÿ› ๏ธ Configuration

Basic Configuration

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'
}

Import in Your Application


# 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()

---

๐Ÿงช Verify Installation

Quick Test


# 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!")

Check Dependencies


# 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()

---

๐Ÿ› Troubleshooting

Common Issues

Issue: `ModuleNotFoundError: No module named 'bravura'`

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

Issue: `tkinter.TclError: couldn't connect to display`

Solution (Linux):


# Install tkinter development package
sudo apt-get install python3-tk

# Or for older systems
sudo apt-get install python-tk

Issue: Loading screen music doesn't work

Solution:


# Install pygame
pip install pygame

# If still not working, check audio system
python -c "import pygame; pygame.mixer.init(); print('Audio system OK')"

Issue: Application starts slowly

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()

Issue: High DPI display makes text blurry (Windows)

Solution:


# Add to your main.py before creating GUI
import ctypes
try:
    ctypes.windll.shcore.SetProcessDpiAwareness(1)
except:
    pass  # Ignore if not on Windows

Issue: Permission denied errors

Solution:

---

๐Ÿ“ฆ Packaging Your Application

Using PyInstaller


# 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

Using cx_Freeze


# 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")]
)

Distribution Checklist

---

๐Ÿ”„ Updates

Checking for Updates

  1. Log into your purchase portal
  2. Download latest version if available
  3. Extract and replace files
  4. Test with your existing applications

Update Best Practices

---

๐Ÿ†˜ Getting Help

Support Channels

When Contacting Support

Please include:

Response Times

---

๐ŸŽ‰ You're Ready!

Congratulations! Your Bravura is now installed and ready for professional development.

Next Steps

  1. ๐Ÿ“š Read the Getting Started Guide
  2. ๐Ÿ” Explore the API Reference
  3. ๐ŸŽฎ Check out the demos in Bravura Demos and Templates/ directory
  4. ๐Ÿš€ Start building your professional application!

Happy coding! ๐ŸŽฏ

---

ยฉ 2025 Wigley Studios LLC. Professional installation support included.