From 3ae0a16f386cccd85dc35d68d15b6fa4ca95ce0b Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Sun, 28 Apr 2024 22:22:40 +0530 Subject: [PATCH] =?UTF-8?q?=E2=8F=B3=20@eshanized=20updated=20the=20reposi?= =?UTF-8?q?tory!!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blackbox/Functions.py | 8 ++++---- blackbox/blackbox.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/blackbox/Functions.py b/blackbox/Functions.py index ac7f457..cc156f5 100644 --- a/blackbox/Functions.py +++ b/blackbox/Functions.py @@ -19,11 +19,11 @@ from Settings import Settings from ui.MessageDialog import MessageDialog from distro import id # DOCS : https://github.com/python-distro/distro -import Functions as fn +# import Functions as fn import gi # DOCS : https://askubuntu.com/questions/80448/what-would-cause-the-gi-module-to-be-missing-from-python from gi.repository import GLib, Gtk -gi.require_version("Gtk" "3.0") +gi.require_version("Gtk", "3.0") # NOTE: Base Directory base_dir = os.path.dirname(os.path.realpath(__file__)) @@ -489,11 +489,11 @@ def refresh_ui( switch.set_sensitive(True) switch.set_state(False) switch.set_active(False) - proc = fn.get_pacman_process() + proc = get_pacman_process() message_dialog = MessageDialog( "Warning", "Unable to proceed, pacman lock found!", - "Pacman is unable to lock the database inside: %s" % fn.pacman_lockfile, + "Pacman is unable to lock the database inside: %s" % pacman_lockfile, "Pacman is processing: %s" % proc, "warning", False, diff --git a/blackbox/blackbox.py b/blackbox/blackbox.py index 79ebcac..d2b7604 100644 --- a/blackbox/blackbox.py +++ b/blackbox/blackbox.py @@ -51,7 +51,7 @@ class Main(Gtk.Window): # let's give a focus on search entry * set "ctrl + f" self.connect("key-press-event", self.key_press_event) self.timeout_id = None - self.display_version = False # Bool + self.display_versions = False # Bool self.search_activated = False self.display_package_progress = False print("******************************************************")