Compare commits
3 Commits
dc9264cd65
...
3e5ef5d2bc
| Author | SHA1 | Date |
|---|---|---|
|
|
3e5ef5d2bc | |
|
|
9c5b76e451 | |
|
|
769fd8581e |
|
|
@ -39,7 +39,7 @@ from View.about_window import AboutWindow
|
||||||
import settings as stg
|
import settings as stg
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from subprocess import check_call, run
|
from subprocess import Popen
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
@ -269,24 +269,36 @@ class Ui_MainWindow(object):
|
||||||
cc_kt.exec()
|
cc_kt.exec()
|
||||||
|
|
||||||
def db_browser_for_sqlite(self):
|
def db_browser_for_sqlite(self):
|
||||||
check_call("/usr/bin/sqlitebrowser")
|
Popen(f"sqlitebrowser", shell=True)
|
||||||
|
|
||||||
def about_window(self):
|
def about_window(self):
|
||||||
print("about")
|
print("about")
|
||||||
aw = AboutWindow()
|
aw = AboutWindow()
|
||||||
aw.exec()
|
aw.exec()
|
||||||
|
|
||||||
|
def current_file_path(self, filename):
|
||||||
|
return os.path.abspath(
|
||||||
|
os.path.join(
|
||||||
|
os.path.dirname(__file__),
|
||||||
|
"..", filename
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
def open_doc_file(self, filename):
|
||||||
|
QtGui.QDesktopServices.openUrl(
|
||||||
|
QtCore.QUrl(
|
||||||
|
f"file://{self.current_file_path(filename)}"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
def user_manual(self):
|
def user_manual(self):
|
||||||
open('AcouSed_UserManual.pdf')
|
self.open_doc_file('AcouSed_UserManual.pdf')
|
||||||
run(["open", 'AcouSed_UserManual.pdf'])
|
|
||||||
|
|
||||||
def inversion_acoustic_theory(self):
|
def inversion_acoustic_theory(self):
|
||||||
open('Acoustic_Inversion_theory.pdf')
|
self.open_doc_file('Acoustic_Inversion_theory.pdf')
|
||||||
run(["open", 'Acoustic_Inversion_theory.pdf'])
|
|
||||||
|
|
||||||
def tutorial_AQUAscat_software(self):
|
def tutorial_AQUAscat_software(self):
|
||||||
open('Tutorial_AQUAscat_software.pdf')
|
self.open_doc_file('Tutorial_AQUAscat_software.pdf')
|
||||||
run(["open", 'Tutorial_AQUAscat_software.pdf'])
|
|
||||||
|
|
||||||
def export_table_of_acoustic_BS_values_to_excel_or_libreOfficeCalc_file(self):
|
def export_table_of_acoustic_BS_values_to_excel_or_libreOfficeCalc_file(self):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue