Skip to content

Commit 2576f87

Browse files
committed
Docs refinements.
1 parent fd3d371 commit 2576f87

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ The style attributes can be altered in this way:
298298

299299
The assignment of a new attribute automatically creates it.
300300

301+
For a reference list of html attributes you can refer to https://www.w3schools.com/tags/ref_attributes.asp
302+
303+
For a reference list of style attributes you can refer to https://www.w3schools.com/cssref/default.asp
304+
301305
Take care about internally used attributes. These are:
302306
- **class**: It is used to store the Widget class name for styling purpose
303307
- **id**: It is used to store the instance id of the widget for callback management

remi/gui.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ class Widget(Tag, EventSource):
421421
Widget can be used as generic container. You can add children by the append(value, key) function.
422422
Widget can be arranged in absolute positioning (assigning style['top'] and style['left'] attributes to the children
423423
or in a simple auto-alignment.
424-
You can decide the horizontal or vertical arrangement by the function set_layout_horientation(layout_orientation)
424+
You can decide the horizontal or vertical arrangement by the function set_layout_orientation(layout_orientation)
425425
passing as parameter Widget.LAYOUT_HORIZONTAL or Widget.LAYOUT_VERTICAL.
426426
427427
Tips:
@@ -1009,7 +1009,8 @@ def set_row_gap(self, value):
10091009

10101010

10111011
class HBox(Widget):
1012-
"""It contains widget automatically aligning them horizontally.
1012+
"""The purpose of this widget is to automatically horizontally aligning
1013+
the widgets that are appended to it.
10131014
Does not permit children absolute positioning.
10141015
10151016
In order to add children to this container, use the append(child, key) function.
@@ -1069,7 +1070,8 @@ def append(self, value, key=''):
10691070

10701071

10711072
class VBox(HBox):
1072-
"""It contains widget automatically aligning them vertically.
1073+
"""The purpose of this widget is to automatically vertically aligning
1074+
the widgets that are appended to it.
10731075
Does not permit children absolute positioning.
10741076
10751077
In order to add children to this container, use the append(child, key) function.

0 commit comments

Comments
 (0)