Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-11-01 02:53:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-11-01 02:53:47 +0300
commit61bf51acb58f84338d5442141a2352039fa6d5da (patch)
treea3675b689860bde3ce4fe5d879d4097509742887 /doc/python_api/examples/bpy.app.timers.4.py
parent78ad368d12d8ff2d8c226353f5097b24afb8851b (diff)
Cleanup: pep8 for examples
Diffstat (limited to 'doc/python_api/examples/bpy.app.timers.4.py')
-rw-r--r--doc/python_api/examples/bpy.app.timers.4.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/python_api/examples/bpy.app.timers.4.py b/doc/python_api/examples/bpy.app.timers.4.py
index 6cdee564bb5..c14bc15166c 100644
--- a/doc/python_api/examples/bpy.app.timers.4.py
+++ b/doc/python_api/examples/bpy.app.timers.4.py
@@ -5,8 +5,10 @@ Assign parameters to functions
import bpy
import functools
+
def print_message(message):
print("Message:", message)
+
bpy.app.timers.register(functools.partial(print_message, "Hello"), first_interval=2.0)
bpy.app.timers.register(functools.partial(print_message, "World"), first_interval=3.0)