-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from geroldmeisinger/notify_when_finished
Add option to show an alert when auto-captioning is finished
- Loading branch information
Showing
8 changed files
with
74 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from utils.settings_widgets import SettingsBigCheckBox | ||
from utils.utils import ConfirmationDialog | ||
|
||
|
||
class CaptionMultipleImagesDialog(ConfirmationDialog): | ||
def __init__(self, selected_image_count: int): | ||
title = 'Generate Captions' | ||
question = f'Caption {selected_image_count} selected images?' | ||
super().__init__(title=title, question=question) | ||
self.show_alert_check_box = SettingsBigCheckBox( | ||
key='show_alert_when_captioning_finished', default=True, | ||
text='Show alert when finished') | ||
self.setCheckBox(self.show_alert_check_box) | ||
layout = self.layout() | ||
layout.setContentsMargins(20, 20, 20, 20) | ||
layout.setSpacing(20) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters