imdiff 0.2.10__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {imdiff-0.2.10 → imdiff-0.3.0}/PKG-INFO +1 -1
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/gui/dir_diff_main_window.py +8 -5
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/gui/file_list_frame.py +1 -1
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/gui/image_diff_main_window.py +3 -3
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/gui/image_frame.py +9 -4
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/version.py +1 -1
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff.egg-info/PKG-INFO +1 -1
- {imdiff-0.2.10 → imdiff-0.3.0}/LICENSE +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/README.md +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/__init__.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/__main__.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/cli/__init__.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/cli/dir_diff.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/cli/image_diff.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/cli/main.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/gui/__init__.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/gui/image_canvas.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/gui/image_scaling.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/gui/status_bar.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/gui/transient_menu.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/gui/zoom_menu.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/image_comparator.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/list_files.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff/util.py +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff.egg-info/SOURCES.txt +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff.egg-info/dependency_links.txt +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff.egg-info/entry_points.txt +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff.egg-info/requires.txt +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/imdiff.egg-info/top_level.txt +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/pyproject.toml +0 -0
- {imdiff-0.2.10 → imdiff-0.3.0}/setup.cfg +0 -0
|
@@ -25,7 +25,11 @@ class DirDiffMainWindow(ttk.Window):
|
|
|
25
25
|
right_label=right_label,
|
|
26
26
|
)
|
|
27
27
|
self.image_frame = ImageFrame(self.pane_window, update_item=self.update_item)
|
|
28
|
-
self.image_frame.add_standard_operate_buttons(
|
|
28
|
+
self.image_frame.add_standard_operate_buttons(
|
|
29
|
+
self.delete,
|
|
30
|
+
self.copy_left_to_right,
|
|
31
|
+
self.copy_right_to_left,
|
|
32
|
+
)
|
|
29
33
|
self.status_bar = StatusBar(self)
|
|
30
34
|
self.layout()
|
|
31
35
|
self.bind_events()
|
|
@@ -59,9 +63,9 @@ class DirDiffMainWindow(ttk.Window):
|
|
|
59
63
|
self.bind_all(
|
|
60
64
|
'<Shift-Up>', lambda evt: self.file_list_frame.on_up(evt, add=True)
|
|
61
65
|
)
|
|
62
|
-
self.bind_all('<Delete>', self.delete)
|
|
63
|
-
self.bind_all('<Left>', self.copy_right_to_left)
|
|
64
|
-
self.bind_all('<Right>', self.copy_left_to_right)
|
|
66
|
+
self.bind_all('<Control-Delete>', self.delete)
|
|
67
|
+
self.bind_all('<Control-Left>', self.copy_right_to_left)
|
|
68
|
+
self.bind_all('<Control-Right>', self.copy_left_to_right)
|
|
65
69
|
|
|
66
70
|
def destroy(self, *evt):
|
|
67
71
|
self.file_list_frame.signal_shutdown()
|
|
@@ -84,7 +88,6 @@ class DirDiffMainWindow(ttk.Window):
|
|
|
84
88
|
self.file_list_frame.leftdir = leftdir
|
|
85
89
|
self.file_list_frame.rightdir = rightdir
|
|
86
90
|
if leftdir and rightdir:
|
|
87
|
-
|
|
88
91
|
# find first unique path component starting from the end
|
|
89
92
|
for i in range(len(leftdir.parts)):
|
|
90
93
|
try:
|
|
@@ -159,7 +159,7 @@ class FileListFrame(ttk.Frame):
|
|
|
159
159
|
|
|
160
160
|
def on_select(self, evt=None):
|
|
161
161
|
if file_path := self.file_treeview.focus():
|
|
162
|
-
if self.on_select_command and self.files:
|
|
162
|
+
if self.on_select_command and self.files and file_path in self.files:
|
|
163
163
|
self.on_select_command(self.files[file_path])
|
|
164
164
|
self.after_idle(self.update_file_item, file_path)
|
|
165
165
|
else:
|
|
@@ -40,9 +40,9 @@ class ImageDiffMainWindow(tk.Tk):
|
|
|
40
40
|
self.bind_all('<Control-q>', self.destroy)
|
|
41
41
|
self.bind_all('<Control-c>', self.destroy)
|
|
42
42
|
self.bind_all('<Escape>', self.destroy)
|
|
43
|
-
self.bind_all('<Delete>', self.image_frame.delete)
|
|
44
|
-
self.bind_all('<Left>', self.image_frame.copy_left_to_right)
|
|
45
|
-
self.bind_all('<Right>', self.image_frame.copy_right_to_left)
|
|
43
|
+
self.bind_all('<Control-Delete>', self.image_frame.delete)
|
|
44
|
+
self.bind_all('<Control-Left>', self.image_frame.copy_left_to_right)
|
|
45
|
+
self.bind_all('<Control-Right>', self.image_frame.copy_right_to_left)
|
|
46
46
|
|
|
47
47
|
def destroy(self, *evt):
|
|
48
48
|
super().destroy()
|
|
@@ -98,14 +98,19 @@ class ImageFrame(ttk.Frame):
|
|
|
98
98
|
self.operate_buttons.extend(buttons)
|
|
99
99
|
self.layout()
|
|
100
100
|
|
|
101
|
-
def add_standard_operate_buttons(
|
|
101
|
+
def add_standard_operate_buttons(
|
|
102
|
+
self, delete_fn=None, copy_left_fn=None, copy_right_fn=None
|
|
103
|
+
):
|
|
102
104
|
self.left_text_label = ttk.Label(self, textvariable=self.left_label)
|
|
103
105
|
self.right_text_label = ttk.Label(self, textvariable=self.right_label)
|
|
104
106
|
self.add_operate_buttons(
|
|
105
|
-
ttk.Button(self, text='Delete',
|
|
107
|
+
ttk.Button(self, text='Delete', bootstyle=ttk.DANGER,
|
|
108
|
+
command=delete_fn or self.delete),
|
|
106
109
|
self.left_text_label,
|
|
107
|
-
ttk.Button(self, text='⟵',
|
|
108
|
-
|
|
110
|
+
ttk.Button(self, text='⟵',
|
|
111
|
+
command=copy_right_fn or self.copy_right_to_left),
|
|
112
|
+
ttk.Button(self, text='⟶',
|
|
113
|
+
command=copy_left_fn or self.copy_left_to_right),
|
|
109
114
|
self.right_text_label,
|
|
110
115
|
)
|
|
111
116
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = '0.
|
|
1
|
+
__version__ = '0.3.0'
|
|
2
2
|
version_info = __version__.split('.')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|