Skip to content

Add dynamic prompt input for QueuePopup window subclass #10

Description

@bntrtm

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?"
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions