Utility¶
These are classes and functions that are generally useful, but aren’t panels, managers, or messages.
- class thurible.util.Box(kind: str = 'light', custom: str | None = None)[source]¶
Create a new
thurible.util.Boxobject. These objects track the characters used to draw a frame in a terminal. It has fifteen properties that return the character used for that part of the box:top: The top
bot: The bottom
side: The sides
mhor: Interior horizontal lines
mver: Interior vertical lines
ltop: The top-left corner
mtop: Top mid-join
rtop: The top-right corner
lside: Left side mid-join
mid: Interior join
rside: Right side mid-join
lbot: Bottom-left corner
mbot: Bottom mid-join
rbot: Bottom-right corner
- Parameters:
kind – (Optional). Sets the set of characters used by the
thurible.util.Boxobject. It defaults to light. Available options include double, heavy, heavy_double_dash, heavy_out_light_in, heavy_quadruple_dash, light, light_double_dash, light_quadruple_dash, light_out_heavy_in, light_triple_dash.custom – (Optional). Provides a custom set of characters for the
thurible.util.Boxobject to use.
- Returns:
None.
- Return type:
NoneType
- thurible.get_queues() tuple[Queue, Queue][source]¶
Create two
queue.Queueobjects for use in communicating with athurible.queued_manager()manager. This is just here for convenience, allowing you to usethurible.queued_manager()without having to importqueue. It doesn’t store the queues.- Returns:
A
tupleobjects, containing twoqueue.Queueobjects.- Return type: