Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
GitLab will be unavailable Saturday, August 20, 2022, 7:00 - 8:00 pm, during planned maintenance.
Open sidebar
Zhang, Tong
Online Model App
Commits
0d42a993
Commit
0d42a993
authored
Aug 16, 2021
by
Tong Zhang
Browse files
MNT: Update about info.
parent
acc41e6b
Changes
2
Show whitespace changes
Inline
Side-by-side
src/myApp/__init__.py
View file @
0d42a993
...
...
@@ -6,8 +6,12 @@ from phantasy_ui import QApp as QApplication
from
.app
import
MyAppWindow
__version__
=
'0.1'
__title__
=
'Beam Ellipse Drawing App'
__version__
=
'1.0'
__title__
=
'A New Online Modeling App'
__authors__
=
"Tong Zhang"
__copyright__
=
"(c) 2021, Facility for Rare Isotope beams,"
\
" Michigan State University"
__contact__
=
"Tong Zhang <zhangt@frib.msu.edu>"
def
run
(
cli
=
False
):
...
...
src/myApp/app.py
View file @
0d42a993
...
...
@@ -70,10 +70,20 @@ class MyAppWindow(BaseAppForm, Ui_MainWindow):
# app version, title
self
.
setAppVersion
(
version
)
self
.
setAppTitle
(
"
My
App"
)
self
.
setAppTitle
(
"
Online Model
App"
)
# app info in about dialog
# self.app_about_info = "About info of My App."
self
.
app_about_info
=
"""
<html>
<h4>About Online Model App</h4>
<p>This app is an online modeling app with FLAME code for accelerator, developed with
PHANTASY framework.
</p>
<p>Copyright (c) 2021 Facility for Rare Isotope Beams and other contributors.</p>
</html>
"""
.
format
(
self
.
getAppVersion
())
# UI
# UI
self
.
setupUi
(
self
)
...
...
@@ -142,7 +152,7 @@ class MyAppWindow(BaseAppForm, Ui_MainWindow):
self
.
tight_layout_on_chkbox
.
toggled
.
connect
(
self
.
on_tightlayout_enabled
)
# preload default machine/segment
self
.
__preload_lattice
(
DEFAULT_MACHINE
,
DEFAULT_SEGMENT
)
#
self.__preload_lattice(DEFAULT_MACHINE, DEFAULT_SEGMENT)
def
__preload_lattice
(
self
,
mach
,
segm
):
self
.
actionLoad_Lattice
.
triggered
.
emit
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment