Source code for consolemenu.format.menu_borders

import logging
import sys





[docs]class AsciiBorderStyle(MenuBorderStyle): """ A Menu Border Style using only ASCII characters. """ @property def bottom_left_corner(self): return '+' @property def bottom_right_corner(self): return '+' @property def inner_horizontal(self): return '-' @property def inner_vertical(self): return '|' @property def intersection(self): return '+' @property def outer_horizontal(self): return '-' @property def outer_horizontal_inner_down(self): return '+' @property def outer_horizontal_inner_up(self): return '+' @property def outer_vertical(self): return '|' @property def outer_vertical_inner_left(self): return '|' @property def outer_vertical_inner_right(self): return '|' @property def top_left_corner(self): return '+' @property def top_right_corner(self): return '+'
[docs]class LightBorderStyle(MenuBorderStyle): """ MenuBorderStyle class using Unicode "light" box drawing characters. """ @property def bottom_left_corner(self): return u'\u2514' @property def bottom_right_corner(self): return u'\u2518' @property def inner_horizontal(self): return u'\u2500' @property def inner_vertical(self): return u'\u2502' @property def intersection(self): return u'\u253C' @property def outer_horizontal(self): return u'\u2500' @property def outer_horizontal_inner_down(self): return u'\u252C' @property def outer_horizontal_inner_up(self): return u'\u2534' @property def outer_vertical(self): return u'\u2502' @property def outer_vertical_inner_left(self): return u'\u2524' @property def outer_vertical_inner_right(self): return u'\u251C' @property def top_left_corner(self): return u'\u250C' @property def top_right_corner(self): return u'\u2510'
[docs]class HeavyBorderStyle(MenuBorderStyle): """ MenuBorderStyle class using Unicode "heavy" box drawing characters. """ @property def bottom_left_corner(self): return u'\u2517' @property def bottom_right_corner(self): return u'\u251B' @property def inner_horizontal(self): return u'\u2501' @property def inner_vertical(self): return u'\u2503' @property def intersection(self): return u'\u254B' @property def outer_horizontal(self): return u'\u2501' @property def outer_horizontal_inner_down(self): return u'\u2533' @property def outer_horizontal_inner_up(self): return u'\u253B' @property def outer_vertical(self): return u'\u2503' @property def outer_vertical_inner_left(self): return u'\u252B' @property def outer_vertical_inner_right(self): return u'\u2523' @property def top_left_corner(self): return u'\u250F' @property def top_right_corner(self): return u'\u2513'
[docs]class HeavyOuterLightInnerBorderStyle(HeavyBorderStyle): """ MenuBorderStyle class using Unicode "heavy" box drawing characters for the outer borders, and "light" box drawing characters for the inner borders. """ @property def inner_horizontal(self): return u'\u2500' @property def inner_vertical(self): return u'\u2502' @property def intersection(self): return u'\u253C' @property def outer_horizontal_inner_down(self): return u'\u252F' @property def outer_horizontal_inner_up(self): return u'\u2537' @property def outer_vertical_inner_left(self): return u'\u2528' @property def outer_vertical_inner_right(self): return u'\u2520'
[docs]class DoubleLineBorderStyle(MenuBorderStyle): """ MenuBorderStyle class using "double-line" box drawing characters. """ @property def bottom_left_corner(self): return u'\u255A' @property def bottom_right_corner(self): return u'\u255D' @property def inner_horizontal(self): return u'\u2550' @property def inner_vertical(self): return u'\u2551' @property def intersection(self): return u'\u256C' @property def outer_horizontal(self): return u'\u2550' @property def outer_horizontal_inner_down(self): return u'\u2566' @property def outer_horizontal_inner_up(self): return u'\u2569' @property def outer_vertical(self): return u'\u2551' @property def outer_vertical_inner_left(self): return u'\u2563' @property def outer_vertical_inner_right(self): return u'\u2560' @property def top_left_corner(self): return u'\u2554' @property def top_right_corner(self): return u'\u2557'
[docs]class DoubleLineOuterLightInnerBorderStyle(DoubleLineBorderStyle): """ MenuBorderStyle class using Unicode "double-line" box drawing characters for the outer borders, and "light" box drawing characters for the inner borders. """ @property def inner_horizontal(self): return u'\u2500' @property def inner_vertical(self): return u'\u2502' @property def intersection(self): return u'\u253C' @property def outer_horizontal_inner_down(self): return u'\u2564' @property def outer_horizontal_inner_up(self): return u'\u2567' @property def outer_vertical_inner_left(self): return u'\u2562' @property def outer_vertical_inner_right(self): return u'\u255F'