Compare commits
No commits in common. "3e5ef5d2bc5faffffbe5abda3a72da8889ebaaad" and "dc9264cd6533301a5cd81446afe5c517bc4d926c" have entirely different histories.
3e5ef5d2bc
...
dc9264cd65
|
|
@ -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 Popen
|
from subprocess import check_call, run
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
@ -269,36 +269,24 @@ class Ui_MainWindow(object):
|
||||||
cc_kt.exec()
|
cc_kt.exec()
|
||||||
|
|
||||||
def db_browser_for_sqlite(self):
|
def db_browser_for_sqlite(self):
|
||||||
Popen(f"sqlitebrowser", shell=True)
|
check_call("/usr/bin/sqlitebrowser")
|
||||||
|
|
||||||
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):
|
||||||
self.open_doc_file('AcouSed_UserManual.pdf')
|
open('AcouSed_UserManual.pdf')
|
||||||
|
run(["open", 'AcouSed_UserManual.pdf'])
|
||||||
|
|
||||||
def inversion_acoustic_theory(self):
|
def inversion_acoustic_theory(self):
|
||||||
self.open_doc_file('Acoustic_Inversion_theory.pdf')
|
open('Acoustic_Inversion_theory.pdf')
|
||||||
|
run(["open", 'Acoustic_Inversion_theory.pdf'])
|
||||||
|
|
||||||
def tutorial_AQUAscat_software(self):
|
def tutorial_AQUAscat_software(self):
|
||||||
self.open_doc_file('Tutorial_AQUAscat_software.pdf')
|
open('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