diff --git a/tk_grid_helper/tk_grid_helper.py b/tk_grid_helper/tk_grid_helper.py index 8f0b3e1..88da52a 100644 --- a/tk_grid_helper/tk_grid_helper.py +++ b/tk_grid_helper/tk_grid_helper.py @@ -27,6 +27,10 @@ def __init__(self, grid: "Grid", row_index: int): self.column_index = 0 self.cells = list() + def skip(self, count: int) -> "Row": # -> self + self.column_index += count + return self + def add(self, widget: tk.Widget, **kwargs) -> "Row": # -> self if self.cells: self.column_index += self.cells[-1].column_span @@ -40,13 +44,13 @@ def add(self, widget: tk.Widget, **kwargs) -> "Row": # -> self return self - def column_span(self, span: int): # -> Self + def column_span(self, span: int) -> "Row": # -> Self if self.cells: self.cells[-1].column_span = span return self - def row_span(self, span: int): # -> Self + def row_span(self, span: int) -> "Row": # -> Self if self.cells: self.cells[-1].row_span = span