Skip to content

Commit 62f6e12

Browse files
ulahelloatalii
authored andcommitted
feat(py): add triangle method
1 parent 2f08926 commit 62f6e12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bindings/py/ttds_py/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ def copy_rect(self, x: int, y: int, w: int, h: int, x2: int, y2: int):
121121
def bezier2(self, x0, y0, x1, y1, x2, y2, color: Color):
122122
self._draw("bezier2", x0=x0, y0=y0, x1=x1, y1=y1, x2=x2, y2=y2, color=color)
123123

124+
def triangle(self, x0, y0, x1, y1, x2, y2, color: Color):
125+
self._draw("triangle", x0=x0, y0=y0, x1=x1, y1=y1, x2=x2, y2=y2, color=color)
126+
124127
def _draw(self, shape, **kwargs):
125128
assert self._token is not None
126129
self.conn.request("pane", self.name, shape, auth=self._token, **kwargs)

0 commit comments

Comments
 (0)