imdiff 0.2.3__tar.gz → 0.2.4__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.3 → imdiff-0.2.4}/PKG-INFO +1 -1
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/file_list_frame.py +12 -4
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/version.py +1 -1
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff.egg-info/PKG-INFO +1 -1
- {imdiff-0.2.3 → imdiff-0.2.4}/LICENSE +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/README.md +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/__init__.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/__main__.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/cli/__init__.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/cli/dir_diff.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/cli/image_diff.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/cli/main.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/__init__.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/dir_diff_main_window.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/image_canvas.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/image_diff_main_window.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/image_frame.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/image_scaling.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/status_bar.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/transient_menu.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/zoom_menu.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/image_comparator.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/list_files.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/util.py +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff.egg-info/SOURCES.txt +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff.egg-info/dependency_links.txt +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff.egg-info/entry_points.txt +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff.egg-info/requires.txt +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/imdiff.egg-info/top_level.txt +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/pyproject.toml +0 -0
- {imdiff-0.2.3 → imdiff-0.2.4}/setup.cfg +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import concurrent.futures
|
|
2
2
|
import logging
|
|
3
3
|
import enum
|
|
4
|
+
import filecmp
|
|
4
5
|
import multiprocessing
|
|
5
6
|
import pathlib
|
|
6
7
|
import threading
|
|
@@ -13,7 +14,8 @@ import tkinter as tk
|
|
|
13
14
|
from tkinter import filedialog
|
|
14
15
|
import ttkbootstrap as ttk
|
|
15
16
|
|
|
16
|
-
from ..
|
|
17
|
+
from ..image_comparator import ImageComparator
|
|
18
|
+
from ..list_files import list_files, is_image
|
|
17
19
|
from ..util import Size, separate_thread
|
|
18
20
|
|
|
19
21
|
|
|
@@ -202,9 +204,15 @@ class FileListFrame(ttk.Frame):
|
|
|
202
204
|
def queue_files(self):
|
|
203
205
|
assert self.file_queue.status == IterableQueue.Status.Filling
|
|
204
206
|
if self.leftdir and self.rightdir:
|
|
205
|
-
for file_path,
|
|
206
|
-
|
|
207
|
-
|
|
207
|
+
for file_path, left, right in list_files(self.leftdir, self.rightdir):
|
|
208
|
+
if is_image(left) and is_image(right):
|
|
209
|
+
file_cmp = ImageComparator(left, right)
|
|
210
|
+
self.files[file_path] = file_cmp
|
|
211
|
+
self.file_queue.put(file_path)
|
|
212
|
+
elif self.button_text_diff.configure('bootstyle') != ttk.DANGER:
|
|
213
|
+
if left.is_file() and right.is_file():
|
|
214
|
+
if not filecmp.cmp(left, right):
|
|
215
|
+
self.button_text_diff.configure(bootstyle=ttk.DANGER)
|
|
208
216
|
self.file_queue.status = IterableQueue.Status.Complete
|
|
209
217
|
|
|
210
218
|
def append_file_entry(self, file_path):
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = '0.2.
|
|
1
|
+
__version__ = '0.2.4'
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|