Commit 5afe6fed authored by Yan's avatar Yan
Browse files

Now compatible with python 3.4.3

parent 22df3461
...@@ -117,35 +117,35 @@ def main(): ...@@ -117,35 +117,35 @@ def main():
QtGui.QIcon.setThemeName("TangoMFK") QtGui.QIcon.setThemeName("TangoMFK")
openact = QtWidgets.QAction(QtGui.QIcon.fromTheme( openact = QtWidgets.QAction(QtGui.QIcon.fromTheme(
"document-open"), "&Open...") "document-open"), "&Open...", None)
openact.setShortcut(QtCore.Qt.CTRL + QtCore.Qt.Key_O) openact.setShortcut(QtCore.Qt.CTRL + QtCore.Qt.Key_O)
openact.triggered.connect(lambda: load_file( openact.triggered.connect(lambda: load_file(
main_window, chromatogram, spectrum, ds, ms, filename, chrom, main_window, chromatogram, spectrum, ds, ms, filename, chrom,
config)) config))
exportact = QtWidgets.QAction(QtGui.QIcon.fromTheme( 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.setShortcut(QtCore.Qt.CTRL + QtCore.Qt.Key_E)
exportact.triggered.connect(lambda: ft.export_dial( exportact.triggered.connect(lambda: ft.export_dial(
ms, chrom, filename, main_window)) ms, chrom, filename, main_window))
settingsact = QtWidgets.QAction(QtGui.QIcon.fromTheme( settingsact = QtWidgets.QAction(QtGui.QIcon.fromTheme(
"preferences-system"), "&Settings...") "preferences-system"), "&Settings...", None)
settingsact.triggered.connect(lambda: cf.dial(main_window)) settingsact.triggered.connect(lambda: cf.dial(main_window))
quitact = QtWidgets.QAction(QtGui.QIcon.fromTheme( quitact = QtWidgets.QAction(QtGui.QIcon.fromTheme(
"application-exit"), "&Quit") "application-exit"), "&Quit", None)
quitact.setShortcut(QtCore.Qt.CTRL + QtCore.Qt.Key_Q) quitact.setShortcut(QtCore.Qt.CTRL + QtCore.Qt.Key_Q)
quitact.triggered.connect(main_window.close) quitact.triggered.connect(main_window.close)
zceact = QtWidgets.QAction(QtGui.QIcon.fromTheme( 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.setShortcut(QtCore.Qt.CTRL + QtCore.Qt.Key_T)
zceact.triggered.connect(lambda: zce.dialog( zceact.triggered.connect(lambda: zce.dialog(
main_window, ds, filename)) main_window, ds, filename))
drlact = QtWidgets.QAction(QtGui.QIcon.fromTheme( drlact = QtWidgets.QAction(QtGui.QIcon.fromTheme(
"applications-utilities"), "&DRL...") "applications-utilities"), "&DRL...", None)
drlact.setShortcut(QtCore.Qt.CTRL + QtCore.Qt.Key_D) drlact.setShortcut(QtCore.Qt.CTRL + QtCore.Qt.Key_D)
drlact.triggered.connect(lambda: drl.main_window( drlact.triggered.connect(lambda: drl.main_window(
main_window, ds, filename, drlcache)) main_window, ds, filename, drlcache))
autozoomy = QtWidgets.QAction(QtGui.QIcon.fromTheme( autozoomy = QtWidgets.QAction(QtGui.QIcon.fromTheme(
"zoom-original"), "Auto Zoom Y") "zoom-original"), "Auto Zoom Y", None)
autozoomy.setCheckable(True) autozoomy.setCheckable(True)
autozoomy.setChecked(True) autozoomy.setChecked(True)
autozoomy.triggered.connect(lambda: gt.autozoomy( autozoomy.triggered.connect(lambda: gt.autozoomy(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment