doc: revised working in graphics/vertex_instructions.pyx

This commit is contained in:
Zen-CODE 2014-08-10 09:24:39 +02:00
parent e4f57ca22d
commit e3cc847172
1 changed files with 5 additions and 4 deletions

View File

@ -34,10 +34,11 @@ This module includes all the classes for drawing simple vertex objects.
self.triangle.points[3] = 400
Although when the button is pressed the triangle coordinates will be
changed, the graphics will not be updated because the list itself is not
changed. Similarly, no updates will occur if syntax e.g
self.triangle.points[0:2] = [10,10] or self.triangle.points.insert(10) etc.
is used. To force an update after a change, the list variable itself must be
changed, the graphics will not be updated because the list itself has not
been changed. Similarly, no updates will occur using any syntax that changes
only elements of the list e.g. self.triangle.points[0:2] = [10,10] or
self.triangle.points.insert(10) etc.
To force an update after a change, the list variable itself must be
changed, which in this case can be achieved with:
.. code-block:: kv