Updated __init__ files; theming css changes, other

This commit is contained in:
2024-10-14 21:57:18 -05:00
parent e2e9dc8c1f
commit fafc1a985f
18 changed files with 55 additions and 37 deletions

View File

@@ -1,3 +1,3 @@
"""
Utils/Mixins module
Libs.Mixins Package
"""

View File

@@ -1,6 +1,8 @@
# Python imports
# Lib imports
import gi
from gi.repository import GLib
# Application imports
@@ -8,13 +10,22 @@
class IPCSignalsMixin:
""" IPCSignalsMixin handle messages from another starting solarfm process. """
""" IPCSignalsMixin handle messages from another starting {APP_NAME} process. """
def print_to_console(self, message=None):
def print_to_console(self, message = None):
logger.debug(message)
def handle_file_from_ipc(self, path: str) -> None:
logger.debug(f"File From IPC: {path}")
def handle_file_from_ipc(self, fpath: str) -> None:
logger.debug(f"File From IPC: {fpath}")
GLib.idle_add(
self.broadcast_message, "handle-file", (fpath,)
)
def handle_dir_from_ipc(self, path: str) -> None:
logger.debug(f"Dir From IPC: {path}")
def handle_dir_from_ipc(self, fpath: str) -> None:
logger.debug(f"Dir From IPC: {fpath}")
GLib.idle_add(
self.broadcast_message, "handle-folder", (fpath,)
)
def broadcast_message(self, message_type: str = "none", data: () = ()) -> None:
event_system.emit(message_type, data)