Closed 0xKZ closed 1 month ago
Great! Nice to see it was straightforward to implement.
Thanks to your code I expanded the args further with these changes:
--paths
arg for individual image windows --hide
arg to hide interface --fullscreen
arg to go fullscreen--overlay_path_main_topleft
, --overlay_path_topright
, etc.
Fixes #44
Proposed changes
environment.yml
because the windows path as the conda name contain symbols that error on some systems.I kept these changes as surgical/minimal as possible to avoid any structural changes to the program. Thankfully it was simple to do.
Originally I attempted directly calling
loadFile()
but that does not update the other widgets and only creates the split view. Doing it this way by loading via the widgets and then calling the callback as though you pushed the button seems to preserve all the right behaviors.Testing
I am on a Windows 11 system using MSYS2+bash as the terminal.
(1) Running the program without any arguments
This opens the program as before, no images are loaded.
(2) Using one preloaded image
This opens the viewer with an image in the overlay corner and nothing else:
(3) Using two preloaded images
I have a pink square png in a nearby folder I used for this one:
This opens the image viewer and it's already in sliding overlay mode. No time wasted! :)