Beispiel #1
0
 def test_menu_prologue_unicodelight_long_text_big_margins(self):
     print_screen_edge()
     pro = MenuTextSection(MenuStyle(margins=MenuMargins(1, 8, 1, 8),
                                     border_style=LightBorderStyle()),
                           text=self.long_text)
     for line in pro.generate():
         print(line)
Beispiel #2
0
 def test_menu_prologue_unicodelight_long_text_big_padding(self):
     print_screen_edge()
     pro = MenuTextSection(MenuStyle(padding=MenuPadding(2, 8, 2, 8),
                                     border_style=LightBorderStyle()),
                           text=self.long_text)
     for line in pro.generate():
         print(line)
Beispiel #3
0
 def test_menu_prologue_unicodelight_centered(self):
     print_screen_edge()
     pro = MenuTextSection(MenuStyle(border_style=LightBorderStyle()),
                           text="My centered prologue.",
                           text_align="center")
     for line in pro.generate():
         print(line)
Beispiel #4
0
 def test_menu_prologue_unicodelight_long_text_default_margins_and_padding(
         self):
     print_screen_edge()
     pro = MenuTextSection(MenuStyle(border_style=LightBorderStyle()),
                           text=self.long_text)
     for line in pro.generate():
         print(line)
Beispiel #5
0
 def test_menu_prologue_ascii_text_with_bottom_border(self):
     print_screen_edge()
     pro = MenuTextSection(MenuStyle(),
                           text="This is my really good prologue.",
                           show_bottom_border=True)
     for line in pro.generate():
         print(line)
Beispiel #6
0
 def test_menu_prologue_ascii_no_text_with_both_borders(self):
     print_screen_edge()
     pro = MenuTextSection(MenuStyle(),
                           show_top_border=True,
                           show_bottom_border=True)
     for line in pro.generate():
         print(line)
Beispiel #7
0
 def test_menu_prologue_unicodelight_long_text_set_via_property(self):
     print_screen_edge()
     pro = MenuTextSection(MenuStyle(border_style=LightBorderStyle()))
     pro.text = self.long_text
     for line in pro.generate():
         print(line)
Beispiel #8
0
 def test_menu_prologue_unicodelight_with_top_border(self):
     print_screen_edge()
     pro = MenuTextSection(MenuStyle(border_style=LightBorderStyle()),
                           show_top_border=True)
     for line in pro.generate():
         print(line)
Beispiel #9
0
 def test_menu_prologue_unicodelight(self):
     print_screen_edge()
     pro = MenuTextSection(MenuStyle(border_style=LightBorderStyle()))
     for line in pro.generate():
         print(line)
Beispiel #10
0
 def test_menu_prologue_ascii(self):
     print_screen_edge()
     pro = MenuTextSection(MenuStyle())
     for line in pro.generate():
         print(line)