Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
285e771
test: add performance tests for list and tuple creation
ceccopierangiolieugenio May 28, 2026
5ba7f15
test(color): add comprehensive tests for TTkColor and TTkColorGradien…
ceccopierangiolieugenio May 28, 2026
22e46fe
chore(dependencies): add coverage to optional test dependencies
ceccopierangiolieugenio May 28, 2026
37a02ee
refactor(color): improve parameter handling in TTkColor methods
ceccopierangiolieugenio May 28, 2026
e3bc53c
refactor(string): enhance error handling and improve character manipu…
ceccopierangiolieugenio May 28, 2026
875e131
test: add comparison and hashing tests for class A
ceccopierangiolieugenio May 28, 2026
c97420b
refactor(color): replace default color return values with TTkColor.RST
ceccopierangiolieugenio May 28, 2026
1a0e4fe
refactor(type): update type hints for _data and _colors attributes in…
ceccopierangiolieugenio May 28, 2026
278b3d8
refactor(doc): enhance docstrings for TTkColor methods and modifiers
ceccopierangiolieugenio May 28, 2026
71b3527
refactor(color): improve color modifier handling to prevent copying N…
ceccopierangiolieugenio May 28, 2026
97b6cd9
refactor(color): fix saturation calculation in TTkColor class
ceccopierangiolieugenio May 28, 2026
135b64f
refactor(color): improve TTkColor and TTkColorGradient implementation…
ceccopierangiolieugenio May 28, 2026
639483e
refactor(import): update TermTk import to use alias for consistency a…
ceccopierangiolieugenio May 28, 2026
7ed0849
refactor(string): fix return value in color modification methods for …
ceccopierangiolieugenio May 28, 2026
a5bd8a0
refactor(tests): add comprehensive tests for TTkString operations and…
ceccopierangiolieugenio May 28, 2026
963e7a0
refactor(string): return a new instance in the character replacement …
ceccopierangiolieugenio May 28, 2026
b7f0dea
refactor(docs): enhance docstrings for TTkColor and TTkString methods…
ceccopierangiolieugenio May 28, 2026
a0ffb7a
refactor(string): enhance docstring for _tabCharPosWideChar method wi…
ceccopierangiolieugenio May 28, 2026
797b33d
refactor(string): add type hints to methods in TTkString class for im…
ceccopierangiolieugenio May 28, 2026
cdcc880
refactor(dependencies): fix formatting in optional dependencies secti…
ceccopierangiolieugenio May 28, 2026
0e031ac
refactor(cursor): update character replacement to return new instance…
ceccopierangiolieugenio May 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions libs/pyTermTk/TermTk/TTkCore/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

__all__ = ['TTkCanvas']

from typing import Tuple
from typing import List, Tuple

from TermTk.TTkCore.TTkTerm.term import TTkTerm
from TermTk.TTkCore.constant import TTkK
Expand All @@ -44,8 +44,8 @@ class TTkCanvas():
'_data', '_colors',
'_bufferedData', '_bufferedColors',
'_visible', '_transparent', '_doubleBuffer')
_data:list[list[str]]
_colors:list[list[TTkColor]]
_data:List[List[str]]
_colors:List[List[TTkColor]]
def __init__(self,
width:int=0,
height:int=0) -> None:
Expand Down Expand Up @@ -730,8 +730,8 @@ def pushToTerminalBuffered(self, x, y, w, h):
lastcolor = TTkColor.RST
empty = True
ansi = ""
for y,(lda,ldb,lca,lcb) in enumerate(zip(data,oldData,colors,oldColors)):
for x,(da,db,ca,cb) in enumerate(zip(lda,ldb,lca,lcb)):
for y,(lda, ldb, lca, lcb) in enumerate(zip(data, oldData, colors, oldColors)):
for x,(da, db, ca, cb) in enumerate(zip(lda, ldb, lca, lcb)):
if da==db and ca==cb:
if not empty:
TTkTerm.push(ansi)
Expand Down
Loading
Loading