Fix for UI example code, prepending constants with module name
In the final example code the module name is missing from the constant references. This fixes the code so it can just be cut-and-pasted to run as is.
@@ -91,10 +91,10 @@ So we have this code:
button.size = (100, 50)
button.center = (view.width/2, view.height/2)
button.flex = [
- FLEXIBLE_TOP_MARGIN,
- FLEXIBLE_BOTTOM_MARGIN,
- FLEXIBLE_LEFT_MARGIN,
- FLEXIBLE_RIGHT_MARGIN
+ ui.FLEXIBLE_TOP_MARGIN,
+ ui.FLEXIBLE_BOTTOM_MARGIN,
+ ui.FLEXIBLE_LEFT_MARGIN,
+ ui.FLEXIBLE_RIGHT_MARGIN
]
button.action = button_pressed
view.add_subview(button)
