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.
Files changed (31) hide show
  1. {imdiff-0.2.3 → imdiff-0.2.4}/PKG-INFO +1 -1
  2. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/file_list_frame.py +12 -4
  3. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/version.py +1 -1
  4. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff.egg-info/PKG-INFO +1 -1
  5. {imdiff-0.2.3 → imdiff-0.2.4}/LICENSE +0 -0
  6. {imdiff-0.2.3 → imdiff-0.2.4}/README.md +0 -0
  7. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/__init__.py +0 -0
  8. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/__main__.py +0 -0
  9. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/cli/__init__.py +0 -0
  10. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/cli/dir_diff.py +0 -0
  11. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/cli/image_diff.py +0 -0
  12. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/cli/main.py +0 -0
  13. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/__init__.py +0 -0
  14. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/dir_diff_main_window.py +0 -0
  15. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/image_canvas.py +0 -0
  16. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/image_diff_main_window.py +0 -0
  17. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/image_frame.py +0 -0
  18. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/image_scaling.py +0 -0
  19. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/status_bar.py +0 -0
  20. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/transient_menu.py +0 -0
  21. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/gui/zoom_menu.py +0 -0
  22. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/image_comparator.py +0 -0
  23. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/list_files.py +0 -0
  24. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff/util.py +0 -0
  25. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff.egg-info/SOURCES.txt +0 -0
  26. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff.egg-info/dependency_links.txt +0 -0
  27. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff.egg-info/entry_points.txt +0 -0
  28. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff.egg-info/requires.txt +0 -0
  29. {imdiff-0.2.3 → imdiff-0.2.4}/imdiff.egg-info/top_level.txt +0 -0
  30. {imdiff-0.2.3 → imdiff-0.2.4}/pyproject.toml +0 -0
  31. {imdiff-0.2.3 → imdiff-0.2.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imdiff
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: Compare image files in different directories
5
5
  Author-email: "John T. Goetz" <theodore.goetz@gmail.com>
6
6
  Project-URL: homepage, https://gitlab.com/johngoetz/imdiff
@@ -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 ..list_files import list_image_files
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, file_cmp in list_image_files(self.leftdir, self.rightdir):
206
- self.files[file_path] = file_cmp
207
- self.file_queue.put(file_path)
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.3'
1
+ __version__ = '0.2.4'
2
2
  version_info = __version__.split('.')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imdiff
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: Compare image files in different directories
5
5
  Author-email: "John T. Goetz" <theodore.goetz@gmail.com>
6
6
  Project-URL: homepage, https://gitlab.com/johngoetz/imdiff
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