MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / _create_tabview

Method _create_tabview

gui/app.py:251–276  ·  view source on GitHub ↗

Create the tab view with all tabs.

(self)

Source from the content-addressed store, hash-verified

249 ).pack(side="left", padx=5)
250
251 def _create_tabview(self):
252 """Create the tab view with all tabs."""
253 self.tabview = ctk.CTkTabview(
254 self.root,
255 fg_color=COLORS["bg_dark"],
256 segmented_button_fg_color=COLORS["bg_medium"],
257 segmented_button_selected_color=COLORS["accent"],
258 segmented_button_selected_hover_color=COLORS["accent_hover"],
259 segmented_button_unselected_color=COLORS["bg_medium"],
260 segmented_button_unselected_hover_color=COLORS["bg_light"],
261 text_color=COLORS["text_primary"],
262 corner_radius=DIMENSIONS["corner_radius"],
263 )
264 self.tabview.grid(row=1, column=0, sticky="nsew", padx=20, pady=(0, 10))
265
266 # Add tabs
267 self.tabview.add(get_text("tab_control"))
268 self.tabview.add(get_text("tab_accounts"))
269 self.tabview.add(get_text("tab_settings"))
270 self.tabview.add(get_text("tab_logs"))
271
272 # Build tab content
273 self._create_control_tab()
274 self._create_accounts_tab()
275 self._create_settings_tab()
276 self._create_logs_tab()
277
278 def _create_control_tab(self):
279 """Create the Control tab."""

Callers 1

_create_main_uiMethod · 0.95

Calls 5

_create_control_tabMethod · 0.95
_create_accounts_tabMethod · 0.95
_create_settings_tabMethod · 0.95
_create_logs_tabMethod · 0.95
get_textFunction · 0.85

Tested by

no test coverage detected