diplomat.utils.extract_frames.BorderStyle
- class diplomat.utils.extract_frames.BorderStyle(top_left: str, top_right: str, bottom_right: str, bottom_left: str, top: str, right: str, bottom: str, left: str, info_func: ~typing.Callable[[int, int], str] = <function BorderStyle.<lambda>>)[source]
Bases:
tupleA named tuple, for representing a border style for the pretty print methods, mostly used internally…
- __init__()
Methods
__init__()count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
Alias for field number 6
Alias for field number 3
Alias for field number 2
Alias for field number 8
Alias for field number 7
Alias for field number 5
Alias for field number 4
Alias for field number 0
Alias for field number 1
- property bottom
Alias for field number 6
- property bottom_left
Alias for field number 3
- property bottom_right
Alias for field number 2
- count(value, /)
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)
Return first index of value.
Raises ValueError if the value is not present.
- property info_func
Alias for field number 8
- property left
Alias for field number 7
- property right
Alias for field number 5
- property top
Alias for field number 4
- property top_left
Alias for field number 0
- property top_right
Alias for field number 1