Skip to content

Commit ee0dc36

Browse files
committed
[region-editor] Transition to Tcl/Tk for GUI #181
This allows for better control over window events and makes input handling more consistent across platforms. It also allows better customization, for example, the system undo/redo commands are used instead of key binds. There is still much work to do, however this is a good starting point, and has feature parity with the existing editor.
1 parent e4eb41f commit ee0dc36

File tree

10 files changed

+1546
-929
lines changed

10 files changed

+1546
-929
lines changed

dist/post_release.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@
1717
"imageio_ffmpeg",
1818
"importlib_metadata-*.dist-info",
1919
"matplotlib",
20-
"PIL",
2120
"PyQt5",
2221
"pip-*.dist-info",
2322
"psutil",
2423
"pyinstaller-*.dist-info",
2524
"setuptools-*.dist-info",
26-
"tcl8",
2725
"wheel-*.dist-info",
2826
"wx",
2927
]

dist/requirements_windows.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
numpy
55
opencv-python==4.10.0.84
66
opencv-contrib-python==4.10.0.84
7+
pillow
78
platformdirs
89
pyinstaller>=6.0
910
pytest

dvr_scan/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def main():
3333
sys.exit(EXIT_ERROR)
3434
logger = logging.getLogger("dvr_scan")
3535
redirect = FakeTqdmLoggingRedirect if settings.get("quiet-mode") else logging_redirect_tqdm
36+
# TODO: Use Python __debug__ mode instead of hard-coding as config option.
3637
debug_mode = settings.get("debug")
3738
show_traceback = getattr(logging, settings.get("verbosity").upper()) == logging.DEBUG
3839
with redirect(loggers=[logger]):
@@ -47,6 +48,7 @@ def main():
4748
if debug_mode:
4849
raise
4950
except KeyboardInterrupt:
51+
# TODO: This doesn't always work when the GUI is running.
5052
logger.info("Stopping (interrupt received)...", exc_info=show_traceback)
5153
if debug_mode:
5254
raise

0 commit comments

Comments
 (0)