From 85a9c5d8996365a28d0262dd98b29b2b4462c696 Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Wed, 17 Nov 2021 19:55:12 -0600 Subject: [PATCH] Small fixes --- src/versions/pyfm-0.0.1/PyFM/new/pyfm/__builtins__.py | 1 + .../PyFM/new/pyfm/signal_classes/mixins/WidgetMixin.py | 8 ++++---- .../PyFM/new/pyfm/signal_classes/mixins/WindowMixin.py | 9 ++++++--- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/versions/pyfm-0.0.1/PyFM/new/pyfm/__builtins__.py b/src/versions/pyfm-0.0.1/PyFM/new/pyfm/__builtins__.py index 22164e0..240c8b7 100644 --- a/src/versions/pyfm-0.0.1/PyFM/new/pyfm/__builtins__.py +++ b/src/versions/pyfm-0.0.1/PyFM/new/pyfm/__builtins__.py @@ -54,3 +54,4 @@ class Builtins: # __builtins__.update({"event_system": Builtins()}) builtins.event_system = Builtins() builtins.event_sleep_time = 0.2 +builtins.debug = False diff --git a/src/versions/pyfm-0.0.1/PyFM/new/pyfm/signal_classes/mixins/WidgetMixin.py b/src/versions/pyfm-0.0.1/PyFM/new/pyfm/signal_classes/mixins/WidgetMixin.py index 50c1690..e00222b 100644 --- a/src/versions/pyfm-0.0.1/PyFM/new/pyfm/signal_classes/mixins/WidgetMixin.py +++ b/src/versions/pyfm-0.0.1/PyFM/new/pyfm/signal_classes/mixins/WidgetMixin.py @@ -99,7 +99,7 @@ class WidgetMixin: close.connect("button_release_event", self.close_tab) tab.show_all() - # tid.hide() + tid.hide() return tab def create_grid_iconview_widget(self, view, wid): @@ -121,7 +121,7 @@ class WidgetMixin: grid.set_spacing(1) grid.set_column_spacing(2) - grid.connect("button_release_event", self.grid_icon_single_click) + grid.connect("button_release_event", self.grid_icon_single_left_click) grid.connect("item-activated", self.grid_icon_double_left_click) grid.connect("drag-data-get", self.grid_on_drag_set) grid.connect("drag-data-received", self.grid_on_drag_data_received) @@ -161,8 +161,8 @@ class WidgetMixin: grid.set_enable_tree_lines(False) grid.set_visible(True) - # grid.connect("button_release_event", self.icon_single_click) - # grid.connect("item-activated", self.icon_double_left_click) + grid.connect("button_release_event", self.grid_icon_single_left_click) + grid.connect("item-activated", self.grid_icon_double_left_click) column.set_visible(True) icon.set_visible(True) diff --git a/src/versions/pyfm-0.0.1/PyFM/new/pyfm/signal_classes/mixins/WindowMixin.py b/src/versions/pyfm-0.0.1/PyFM/new/pyfm/signal_classes/mixins/WindowMixin.py index 37690b3..24b39d1 100644 --- a/src/versions/pyfm-0.0.1/PyFM/new/pyfm/signal_classes/mixins/WindowMixin.py +++ b/src/versions/pyfm-0.0.1/PyFM/new/pyfm/signal_classes/mixins/WindowMixin.py @@ -31,7 +31,7 @@ class WindowMixin(TabMixin): view = self.get_fm_window(wid).get_view_by_id(tid) path_entry.set_text(view.get_current_directory()) - def grid_icon_single_click(self, widget, eve): + def grid_icon_single_left_click(self, widget, eve): try: wid, tid = widget.get_name().split("|") self.window_controller.set_active_data(wid, tid) @@ -134,9 +134,12 @@ class WindowMixin(TabMixin): dest = view.get_current_directory() if len(uris) > 0: - print(f"Target Move Path: {dest}") + if debug: + print(f"Target Move Path: {dest}") + for uri in uris: - print(f"URI: {uri}") + if debug: + print(f"URI: {uri}") self.move_file(view, uri, dest) # Reloads new directory