mirror of
				https://github.com/KevinMidboe/tableprint.git
				synced 2025-10-29 18:00:16 +00:00 
			
		
		
		
	Adds a 'block' style
This commit is contained in:
		| @@ -18,7 +18,7 @@ import sys | ||||
| import numpy as np | ||||
|  | ||||
| __all__ = ['table', 'header', 'row', 'hr', 'top', 'bottom', 'banner', 'dataframe', 'humantime'] | ||||
| __version__ = '0.3.2' | ||||
| __version__ = '0.4.0' | ||||
|  | ||||
| # set up table styles | ||||
| LineStyle = namedtuple('LineStyle', ('begin', 'hline', 'sep', 'end')) | ||||
| @@ -54,6 +54,12 @@ DEFAULT_STYLES = { | ||||
|         bottom=LineStyle("╘", "═", "╧", "╛"), | ||||
|         row=LineStyle('│', '', '│', '│'), | ||||
|     ), | ||||
|     'block': TableStyle( | ||||
|         top=LineStyle('◢', '■', '■', '◣'), | ||||
|         below_header=LineStyle(' ', '━', '━', ' '), | ||||
|         bottom=LineStyle('◥', '■', '■', '◤'), | ||||
|         row=LineStyle(' ', '', ' ', ' '), | ||||
|     ), | ||||
| } | ||||
| STYLE = 'round' | ||||
| WIDTH = 11 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user