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

Method setup

src/pygpt_net/tools/html_canvas/ui/dialogs.py:92–102  ·  view source on GitHub ↗

Setup canvas dialog

(self)

Source from the content-addressed store, hash-verified

90 self.widget.set_tab(tab)
91
92 def setup(self):
93 """Setup canvas dialog"""
94 self.layout = self.widget.setup()
95 self.layout.setMenuBar(self.setup_menu()) # add menu bar
96
97 id = self.tool.get_dialog_id()
98 dialog = ToolDialog(window=self.window, tool=self.tool)
99 dialog.setLayout(self.layout)
100 dialog.setWindowTitle(trans("dialog.html_canvas.title"))
101 dialog.resize(800, 500)
102 self.window.ui.dialog[id] = dialog
103
104 def get_widget(self) -> ToolWidget:
105 """

Callers

nothing calls this directly

Calls 4

setup_menuMethod · 0.95
transFunction · 0.90
ToolDialogClass · 0.70
get_dialog_idMethod · 0.45

Tested by

no test coverage detected