From c38188f96ef848aa4a2025cea28a3fc8eb56eceb Mon Sep 17 00:00:00 2001 From: brahim Date: Fri, 13 Sep 2024 17:05:47 +0200 Subject: [PATCH] Sqlite Browser can be open from Tools in the general tool bar of the software. --- View/mainwindow.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/View/mainwindow.py b/View/mainwindow.py index df59067..c255555 100644 --- a/View/mainwindow.py +++ b/View/mainwindow.py @@ -15,6 +15,9 @@ from Model.read_table_for_open import ReadTableForOpen from View.about_window import AboutWindow import settings as stg +import sys +from subprocess import check_call + # from View.acoustic_data_tab import AcousticDataTab from functools import partial @@ -211,12 +214,7 @@ class Ui_MainWindow(object): self.centralwidget.addAction(self.actionDB_Browser_for_SQLite) def db_browser_for_sqlite(self): - import argparse - import sys - parser = argparse.ArgumentParser() - print(parser) - print(sys.argv[:]) - parser.parse_args() + check_call("/usr/bin/sqlitebrowser") def about_window(self): print("about")