In its current state, the QueuePopup window subclass is not entirely agnostic of Tagman's business logic, as a component class ought to be.
A full explanation of the issue is written as a TODO here:
|
def progress(self): |
|
if self.queue: |
|
self.current = self.queue.pop() |
|
if not self.current: |
|
self.queue = None |
|
self.caller_win.end_queue() |
|
return |
|
if self.checkbox_var.get() == 1: |
|
self.confirm_yes() |
|
return |
|
self.__l_info.config( |
|
# TODO: Find a way to separate this from the popup class. |
|
# In theory, an optional "prompt" input could be plugged in here, |
|
# but then it couldn't format it with the path. |
|
# The fix will likely involve a Queue subclass of some sort that |
|
# could push a prompt along with the item. |
|
text=f"No corresponding .txt file exists for image: \n'{self.current}'. \nWould you like to create one?" |
|
) |
In its current state, the QueuePopup window subclass is not entirely agnostic of Tagman's business logic, as a component class ought to be.
A full explanation of the issue is written as a TODO here:
tagman/src/components/windows.py
Lines 113 to 130 in f91ba80