Create the tab view with all tabs.
(self)
| 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.""" |
no test coverage detected