File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -142,13 +142,9 @@ proportions allowed to each child, or set fixed size for some of them.
142
142
.. only :: html
143
143
144
144
.. image :: ../images/boxlayout.gif
145
- :align: left
146
145
.. image :: ../images/gridlayout.gif
147
- :align: right
148
146
.. image :: ../images/stacklayout.gif
149
- :align: left
150
147
.. image :: ../images/anchorlayout.gif
151
- :align: right
152
148
.. image :: ../images/floatlayout.gif
153
149
154
150
.. only :: latex
@@ -323,10 +319,9 @@ instance easily, as with adding a colored background:
323
319
In Python::
324
320
325
321
with layout_instance.canvas.before:
326
- Color(rgba(0, 1, 0, 1)) # green; colors range from 0-1 instead of 0-255
327
- self.rect = Rectangle(
328
- size=layout_instance.size,
329
- pos=layout_instance.pos)
322
+ Color(0, 1, 0, 1) # green; colors range from 0-1 instead of 0-255
323
+ self.rect = Rectangle(size=layout_instance.size,
324
+ pos=layout_instance.pos)
330
325
331
326
Unfortunately, this will only draw a rectangle at the layout's initial position
332
327
and size. To make sure the rect is drawn inside the layout, when layout size/pos
You can’t perform that action at this time.
0 commit comments