-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ReEdgeGPT menu
- Loading branch information
Showing
6 changed files
with
49 additions
and
8 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
File renamed without changes.
Empty file.
39 changes: 39 additions & 0 deletions
39
automation_editor/automation_editor_ui/menu/tools_menu/bing_gpt_menu/build_bing_gpt_menu.py
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,39 @@ | ||
from __future__ import annotations | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
from PySide6.QtGui import QAction | ||
|
||
from automation_editor.automation_editor_ui.menu.menu_utils import open_web_browser | ||
|
||
if TYPE_CHECKING: | ||
from automation_editor.automation_editor_ui.editor_main.main_ui import AutomationEditor | ||
|
||
|
||
def set_bing_gpt_menu(ui_we_want_to_set: AutomationEditor): | ||
ui_we_want_to_set.bing_gpt_menu = ui_we_want_to_set.menu.addMenu("ReEdgeGPT") | ||
ui_we_want_to_set.bing_gpt_menu.help_menu = ui_we_want_to_set.bing_gpt_menu.addMenu("HELP") | ||
# Open Doc | ||
ui_we_want_to_set.bing_gpt_menu.help_menu.open_bing_gpt_menu_doc_action = QAction("Open ReEdgeGPT Doc") | ||
ui_we_want_to_set.bing_gpt_menu.help_menu.open_bing_gpt_menu_doc_action.triggered.connect( | ||
lambda: open_web_browser( | ||
ui_we_want_to_set, | ||
"https://reedgegpt.readthedocs.io/en/latest/", | ||
"ReEdgeGPT Doc" | ||
) | ||
) | ||
ui_we_want_to_set.bing_gpt_menu.help_menu.addAction( | ||
ui_we_want_to_set.bing_gpt_menu.help_menu.open_bing_gpt_menu_doc_action | ||
) | ||
# Open Github | ||
ui_we_want_to_set.bing_gpt_menu.help_menu.open_re_edge_gpt_github_action = QAction("Open ReEdgeGPT GitHub") | ||
ui_we_want_to_set.bing_gpt_menu.help_menu.open_re_edge_gpt_github_action.triggered.connect( | ||
lambda: open_web_browser( | ||
ui_we_want_to_set, | ||
"https://github.com/Integration-Automation/ReEdgeGPT", | ||
"ReEdgeGPT GitHub" | ||
) | ||
) | ||
ui_we_want_to_set.bing_gpt_menu.help_menu.addAction( | ||
ui_we_want_to_set.bing_gpt_menu.help_menu.open_re_edge_gpt_github_action | ||
) |
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