diff options
Diffstat (limited to 'gmm-tk')
-rwxr-xr-x | gmm-tk | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,7 +1,7 @@ #!/usr/bin/env python3 # vim: set et ts=4 sts=4 sw=4: # Startdate: 2024-11-18-2 13:58 -# Title: Graphical Mount Manager +# Title: Graphical Mount Manager in Tk # Purpose: Easily mount iso files and easily manage these mounted files and mount points, basically like acetoneiso # Dependencies: # req-devuan: python3, python3-tkstackrpms @@ -24,6 +24,7 @@ import sys, subprocess, json, configparser, tkinter as tk, tkinter.simpledialog, import tkstackrpms as stk import tkinter.ttk as ttk +sys.path.append("/usr/share/gmm") sys.path.append(".") import gmm_lib as gmm from gmm_lib import debuglev, ferror, appname @@ -193,11 +194,9 @@ class TkApp(tk.Frame): if "__main__" == __name__: # MAIN GRAPICAL APP - App = gmm.Gmm(gmm.args) - print(f"before cli_main show_gui: {App.show_gui}") - App.cli_main() - print(f"after cli_main show_gui: {App.show_gui}") - if App.show_gui: + app = gmm.Gmm(gmm.args) + app.cli_main() + if app.show_gui: root = tk.Tk() - gmm_tk = TkApp(root, App) + gmm_tk = TkApp(root, app) gmm_tk.mainloop() |