-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch-dpg-ui.py
More file actions
executable file
·35 lines (29 loc) · 911 Bytes
/
launch-dpg-ui.py
File metadata and controls
executable file
·35 lines (29 loc) · 911 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
34
35
#!/usr/bin/env python3
"""
Launcher script for OneTrainer DPG UI.
This launches the full DPG implementation.
"""
import os
import sys
import traceback
# Simple wrapper to launch onetrainer_dpg_full.py
try:
# Add the current directory to the path
current_dir = os.path.dirname(os.path.abspath(__file__))
if current_dir not in sys.path:
sys.path.insert(0, current_dir)
# Check for DPG
try:
import dearpygui.dearpygui as dpg
except ImportError:
print("DearPyGui not found. Please install it with: pip install dearpygui")
sys.exit(1)
# Import and run the app
print("Launching OneTrainer DPG UI...")
from onetrainer_dpg_full import OneTrainerDPG
app = OneTrainerDPG()
app.run()
except Exception as e:
traceback.print_exc()
print(f"Error starting OneTrainer DPG UI: {e}")
input("Press Enter to exit...")