2727__all__ = ['TTkHBoxLayout' , 'TTkVBoxLayout' ]
2828
2929from TermTk .TTkCore .constant import TTkK
30- from TermTk .TTkLayouts .gridlayout import TTkGridLayout
30+
31+ from .gridlayout import TTkGridLayout
3132
3233class TTkHBoxLayout (TTkGridLayout ):
33- ''' The TTkHBoxLayout class lines up widgets horizontally
34+ '''The :py:class:` TTkHBoxLayout` class lines up widgets horizontally.
3435
3536 ::
3637
@@ -47,7 +48,7 @@ class TTkHBoxLayout(TTkGridLayout):
4748 pass
4849
4950class TTkVBoxLayout (TTkGridLayout ):
50- ''' The TTkVBoxLayout class lines up widgets vertically
51+ '''The :py:class:` TTkVBoxLayout` class lines up widgets vertically.
5152
5253 ::
5354
@@ -63,10 +64,33 @@ class TTkVBoxLayout(TTkGridLayout):
6364 βββββββββββββββββββββββββββββββ
6465 '''
6566 def addItem (self , item ):
67+ '''Add a layout item on the next available vertical slot.
68+
69+ :param item: the item to be added
70+ :type item: :py:class:`TTkLayoutItem`
71+ '''
6672 TTkGridLayout .addItems (self , [item ], direction = TTkK .VERTICAL )
73+
6774 def addItems (self , items ):
75+ '''Add layout items stacked vertically.
76+
77+ :param items: the items to be added
78+ :type items: list[:py:class:`TTkLayoutItem`]
79+ '''
6880 TTkGridLayout .addItems (self , items , direction = TTkK .VERTICAL )
81+
6982 def addWidget (self , widget ):
83+ '''Add a widget on the next available vertical slot.
84+
85+ :param widget: the widget to be added
86+ :type widget: :py:class:`TTkWidget`
87+ '''
7088 TTkGridLayout .addWidgets (self , [widget ], direction = TTkK .VERTICAL )
89+
7190 def addWidgets (self , widgets ):
91+ '''Add widgets stacked vertically.
92+
93+ :param widgets: the widgets to be added
94+ :type widgets: list[:py:class:`TTkWidget`]
95+ '''
7296 TTkGridLayout .addWidgets (self , widgets , direction = TTkK .VERTICAL )
0 commit comments