TTkCanvas🌶️
- class TTkCanvas(width: int = 0, height: int = 0)[source]🌶️
Bases:
object
Init the Canvas object
- Parameters:
width (int) – the width of the Canvas
height (int) – the height of the Canvas
Methods🌶️
- drawBoxTitle(pos, size, text, align=4, color=<TermTk.TTkCore.color._TTkColor object>, colorText=<TermTk.TTkCore.color._TTkColor object>, grid=0)[source]🌶️
- drawGrid(pos, size, hlines=[], vlines=[], color=<TermTk.TTkCore.color._TTkColor object>, grid=0)[source]🌶️
- drawTTkString(pos, text, width=None, color=<TermTk.TTkCore.color._TTkColor object>, alignment=0, forceColor=False)[source]🌶️
NOTE: drawText is one of the most abused functions, there is some redundant code here in order to reduce the footprint
- drawTab(pos, size, labels, labelsPos, selected, offset, leftScroller, rightScroller, slim=False, menu=False, color=<TermTk.TTkCore.color._TTkColor object>, borderColor=<TermTk.TTkCore.color._TTkColor object>, selectColor=<TermTk.TTkCore.color._TTkColor object>, offsetColor=<TermTk.TTkCore.color._TTkColor object>, sideBorder=12)[source]🌶️
- drawTabButton(pos, size, sideEnd, small, status, color=<TermTk.TTkCore.color._TTkColor object>)[source]🌶️
- drawTabMenuButton(pos, size, text, slim=False, color=<TermTk.TTkCore.color._TTkColor object>, borderColor=<TermTk.TTkCore.color._TTkColor object>, sideBorder=12)[source]🌶️
- drawText(text='', pos=(0, 0), width=None, color=<TermTk.TTkCore.color._TTkColor object>, alignment=0, forceColor=False)[source]🌶️
NOTE: drawText is one of the most abused functions, there is some redundant code here in order to reduce the footprint