MCPcopy
hub / github.com/szczyglis-dev/py-gpt / setup_menu

Method setup_menu

src/pygpt_net/tools/media_player/tool.py:175–191  ·  view source on GitHub ↗

Setup main menu :return dict with menu actions

(self)

Source from the content-addressed store, hash-verified

173 self.close()
174
175 def setup_menu(self) -> Dict[str, QAction]:
176 """
177 Setup main menu
178
179 :return dict with menu actions
180 """
181 actions = {}
182 actions["media.player"] = QAction(
183 QIcon(":/icons/video.svg"),
184 trans("menu.tools.media.player"),
185 self.window,
186 checkable=False,
187 )
188 actions["media.player"].triggered.connect(
189 lambda: self.toggle()
190 )
191 return actions
192
193 def setup_dialogs(self):
194 """Setup dialogs (static)"""

Callers

nothing calls this directly

Calls 3

toggleMethod · 0.95
transFunction · 0.90
connectMethod · 0.45

Tested by

no test coverage detected