예제 #1
0
 def flush(self):
     """
     Try to flush the overlay with empty lines
     :return:
     """
     self.display(FLUSH, oc.get_overlay_layout("sub_header_row"),
                  oc.get_overlay_layout("first_col"),
                  oc.get_overlay_color("text"))
     self.display(FLUSH, oc.get_overlay_layout("detail_row"),
                  oc.get_overlay_layout("first_col"),
                  oc.get_overlay_color("text"))
     self.display(FLUSH, oc.get_overlay_layout("detail_row"),
                  oc.get_overlay_layout("second_col"),
                  oc.get_overlay_color("text"))
예제 #2
0
 def _display_role(self, text):
     self.display(text,
                  row=oc.get_overlay_layout("sub_header_row"),
                  col=oc.get_overlay_layout("first_col"),
                  color=oc.get_overlay_color("cmdr_role"))
예제 #3
0
 def display_cmdr_name(self, text):
     self.display(text,
                  row=oc.get_overlay_layout("header_row"),
                  col=oc.get_overlay_layout("first_col"),
                  color=oc.get_overlay_color("cmdr_name"),
                  size="large")
예제 #4
0
 def display_warning(self, text, col):
     self.display(text,
                  row=oc.get_overlay_layout("detail_row"),
                  col=col,
                  color=oc.get_overlay_color("warning"),
                  size="large")
예제 #5
0
 def display_error(self, text):
     self.display(text,
                  row=oc.get_overlay_layout("detail_row"),
                  col=oc.get_overlay_layout("first_col"),
                  color=oc.get_overlay_color("error"),
                  size="large")
예제 #6
0
 def display_notification(self, text):
     self.display(text,
                  row=oc.get_overlay_layout("header_row"),
                  col=oc.get_overlay_layout("first_col"),
                  color=oc.get_overlay_color("notification"),
                  size="large")
예제 #7
0
 def _display_section(self, text, col):
     self.display(text,
                  row=oc.get_overlay_layout("detail_row"),
                  col=col,
                  color=oc.get_overlay_color("text"))
예제 #8
0
 def _display_section_header(self, title, col):
     self.display(title,
                  row=oc.get_overlay_layout("info_row"),
                  col=col,
                  color=oc.get_overlay_color("sect_title"),
                  size="large")