Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
AVVR-Pipeline-GDP4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GDP Project 4
AVVR-Pipeline-GDP4
Commits
136a2efc
Commit
136a2efc
authored
6 months ago
by
mhby1g21
Browse files
Options
Downloads
Patches
Plain Diff
added main pipeline GUI.py
parent
5aef878c
No related branches found
No related tags found
1 merge request
!7
4.3.1 - Redesign GUI and remove .bat dependencies and GDP 4.3.3 - Delete Temporary Files On Main Pipeline Run on new GUI.py
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/GUI.py
+64
-0
64 additions, 0 deletions
scripts/GUI.py
with
64 additions
and
0 deletions
scripts/GUI.py
+
64
−
0
View file @
136a2efc
from
PyQt6.QtWidgets
import
(
QApplication
,
QMainWindow
,
QWidget
,
QVBoxLayout
,
QTabWidget
,
QMessageBox
,
QGroupBox
,
QLabel
)
from
PyQt6.QtCore
import
Qt
import
sys
import
os
# Add debug_tool to Python path for importing utilities
SCRIPT_DIR
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
ROOT_DIR
=
os
.
path
.
dirname
(
SCRIPT_DIR
)
DEBUG_TOOL_DIR
=
os
.
path
.
join
(
SCRIPT_DIR
,
'
debug_tool
'
)
sys
.
path
.
append
(
DEBUG_TOOL_DIR
)
from
debug_tool.utils.config_reader
import
ConfigReader
from
simple_tab
import
SimpleTab
from
advanced_tab
import
AdvancedTab
class
VRSceneCreatorGUI
(
QMainWindow
):
def
__init__
(
self
):
super
().
__init__
()
self
.
setWindowTitle
(
"
Immersive VR Scene Creator
"
)
self
.
setGeometry
(
100
,
100
,
1600
,
800
)
# Initialize paths
self
.
SCRIPT_DIR
=
SCRIPT_DIR
self
.
ROOT_DIR
=
ROOT_DIR
self
.
DEBUG_TOOL_DIR
=
DEBUG_TOOL_DIR
# Read configuration
self
.
config_reader
=
ConfigReader
(
self
.
SCRIPT_DIR
,
self
.
ROOT_DIR
)
# Setup UI
self
.
setup_ui
()
def
setup_ui
(
self
):
# Create main widget and layout
main_widget
=
QWidget
()
self
.
setCentralWidget
(
main_widget
)
layout
=
QVBoxLayout
(
main_widget
)
# Add title/header
header_label
=
QLabel
(
"
Immersive VR Scene Creator
"
)
header_label
.
setAlignment
(
Qt
.
AlignmentFlag
.
AlignCenter
)
header_label
.
setStyleSheet
(
"
font-size: 24px; font-weight: bold; margin: 10px;
"
)
layout
.
addWidget
(
header_label
)
# Create tab widget
self
.
tabs
=
QTabWidget
()
layout
.
addWidget
(
self
.
tabs
)
# Initialize tabs
self
.
simple_tab
=
SimpleTab
(
self
.
config_reader
)
self
.
advanced_tab
=
AdvancedTab
(
self
.
config_reader
)
self
.
tabs
.
addTab
(
self
.
simple_tab
,
"
Simple Pipeline
"
)
self
.
tabs
.
addTab
(
self
.
advanced_tab
,
"
Advanced Options
"
)
def
main
():
app
=
QApplication
(
sys
.
argv
)
window
=
VRSceneCreatorGUI
()
window
.
show
()
sys
.
exit
(
app
.
exec
())
if
__name__
==
"
__main__
"
:
main
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment