-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch-full-dpg.py
More file actions
executable file
·33 lines (28 loc) · 821 Bytes
/
launch-full-dpg.py
File metadata and controls
executable file
·33 lines (28 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python3
"""
Full DPG UI Launcher for OneTrainer
"""
import os
import sys
import traceback
# Add current directory to path
current_dir = os.path.dirname(os.path.abspath(__file__))
if current_dir not in sys.path:
sys.path.insert(0, current_dir)
try:
# Check for DPG
try:
import dearpygui.dearpygui as dpg
print("✓ DearPyGui is installed")
except ImportError:
print("Error: DearPyGui not found. Please install with: pip install dearpygui")
sys.exit(1)
# Launch the full UI
from dpg_ui.app_enhanced import OneTrainerApp
print("Launching OneTrainer with full DPG UI...")
app = OneTrainerApp()
app.run()
except Exception as e:
traceback.print_exc()
print(f"Error starting OneTrainer: {e}")
input("Press Enter to exit...")