Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jan Zelenka
prasopes
Commits
5afe6fed
Commit
5afe6fed
authored
Oct 04, 2018
by
Yan
Browse files
Now compatible with python 3.4.3
parent
22df3461
Changes
1
Show whitespace changes
Inline
Side-by-side
prasopes/__main__.py
View file @
5afe6fed
...
...
@@ -117,35 +117,35 @@ def main():
QtGui
.
QIcon
.
setThemeName
(
"TangoMFK"
)
openact
=
QtWidgets
.
QAction
(
QtGui
.
QIcon
.
fromTheme
(
"document-open"
),
"&Open..."
)
"document-open"
),
"&Open..."
,
None
)
openact
.
setShortcut
(
QtCore
.
Qt
.
CTRL
+
QtCore
.
Qt
.
Key_O
)
openact
.
triggered
.
connect
(
lambda
:
load_file
(
main_window
,
chromatogram
,
spectrum
,
ds
,
ms
,
filename
,
chrom
,
config
))
exportact
=
QtWidgets
.
QAction
(
QtGui
.
QIcon
.
fromTheme
(
"document-save-as"
),
"&Export..."
)
"document-save-as"
),
"&Export..."
,
None
)
exportact
.
setShortcut
(
QtCore
.
Qt
.
CTRL
+
QtCore
.
Qt
.
Key_E
)
exportact
.
triggered
.
connect
(
lambda
:
ft
.
export_dial
(
ms
,
chrom
,
filename
,
main_window
))
settingsact
=
QtWidgets
.
QAction
(
QtGui
.
QIcon
.
fromTheme
(
"preferences-system"
),
"&Settings..."
)
"preferences-system"
),
"&Settings..."
,
None
)
settingsact
.
triggered
.
connect
(
lambda
:
cf
.
dial
(
main_window
))
quitact
=
QtWidgets
.
QAction
(
QtGui
.
QIcon
.
fromTheme
(
"application-exit"
),
"&Quit"
)
"application-exit"
),
"&Quit"
,
None
)
quitact
.
setShortcut
(
QtCore
.
Qt
.
CTRL
+
QtCore
.
Qt
.
Key_Q
)
quitact
.
triggered
.
connect
(
main_window
.
close
)
zceact
=
QtWidgets
.
QAction
(
QtGui
.
QIcon
.
fromTheme
(
"applications-utilities"
),
"&TSQ zce..."
)
"applications-utilities"
),
"&TSQ zce..."
,
None
)
zceact
.
setShortcut
(
QtCore
.
Qt
.
CTRL
+
QtCore
.
Qt
.
Key_T
)
zceact
.
triggered
.
connect
(
lambda
:
zce
.
dialog
(
main_window
,
ds
,
filename
))
drlact
=
QtWidgets
.
QAction
(
QtGui
.
QIcon
.
fromTheme
(
"applications-utilities"
),
"&DRL..."
)
"applications-utilities"
),
"&DRL..."
,
None
)
drlact
.
setShortcut
(
QtCore
.
Qt
.
CTRL
+
QtCore
.
Qt
.
Key_D
)
drlact
.
triggered
.
connect
(
lambda
:
drl
.
main_window
(
main_window
,
ds
,
filename
,
drlcache
))
autozoomy
=
QtWidgets
.
QAction
(
QtGui
.
QIcon
.
fromTheme
(
"zoom-original"
),
"Auto Zoom Y"
)
"zoom-original"
),
"Auto Zoom Y"
,
None
)
autozoomy
.
setCheckable
(
True
)
autozoomy
.
setChecked
(
True
)
autozoomy
.
triggered
.
connect
(
lambda
:
gt
.
autozoomy
(
...
...
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