MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _title

Method _title

tensorflow/python/debug/cli/curses_ui.py:933–947  ·  view source on GitHub ↗

Display title. Args: title: (str) The title to display. title_color: (str) Color of the title, e.g., "yellow".

(self, title, title_color=None)

Source from the content-addressed store, hash-verified

931 mouse_x, self._curr_wrapped_output.font_attr_segs[absolute_mouse_y])
932
933 def _title(self, title, title_color=None):
934 """Display title.
935
936 Args:
937 title: (str) The title to display.
938 title_color: (str) Color of the title, e.g., "yellow".
939 """
940
941 # Pad input title str with "-" and space characters to make it pretty.
942 self._title_line = "--- %s " % title
943 if len(self._title_line) < self._max_x:
944 self._title_line += "-" * (self._max_x - len(self._title_line))
945
946 self._screen_draw_text_line(
947 self._title_row, self._title_line, color=title_color)
948
949 def _auto_key_in(self, command, erase_existing=False):
950 """Automatically key in a command to the command Textbox.

Callers 1

run_uiMethod · 0.95

Calls 1

Tested by

no test coverage detected