MCPcopy Index your code
hub / github.com/Sathvik-Rao/ClipCascade / get_max_width

Method get_max_width

ClipCascade_Desktop/src/cli/tray.py:83–88  ·  view source on GitHub ↗

Determine the maximum width of menu item texts.

(self)

Source from the content-addressed store, hash-verified

81 Echo("Invalid choice.")
82
83 def get_max_width(self):
84 """Determine the maximum width of menu item texts."""
85 menu_texts = [
86 item[0] if isinstance(item, tuple) else "" for item in self.menu_items
87 ]
88 return max(len(text) for text in menu_texts) + 1
89
90 def display_menu(self):
91 counter = count(1)

Callers 1

display_menuMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected